use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class NavigatorTest method destroy_destroyedRoot.
@Test
public void destroy_destroyedRoot() {
disablePushAnimation(child1);
StackController spy = spy(parentController);
spy.options.animations.setRoot.getEnter().enabled = new Bool(false);
uut.setRoot(spy, new CommandListenerAdapter(), reactInstanceManager);
spy.push(child1, new CommandListenerAdapter());
activityController.destroy();
verify(spy, times(1)).destroy();
}
use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class SideMenuControllerTest method openLeftMenu.
private void openLeftMenu() {
Options options = new Options();
options.sideMenuRootOptions.left.visible = new Bool(true);
options.sideMenuRootOptions.left.animate = new Bool(false);
uut.mergeOptions(options);
uut.onDrawerSlide(left.getView(), 1);
}
use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class SideMenuControllerTest method mergeChildOptions_lockModeIsUpdatedInInitialOptions.
@Test
public void mergeChildOptions_lockModeIsUpdatedInInitialOptions() {
setLeftRight(left, right);
Options leftDisabled = new Options();
leftDisabled.sideMenuRootOptions.left.enabled = new Bool(false);
left.mergeOptions(leftDisabled);
assertThat(uut.resolveCurrentOptions().sideMenuRootOptions.left.enabled.get()).isFalse();
Options rightVisible = new Options();
rightVisible.sideMenuRootOptions.right.visible = new Bool(true);
right.mergeOptions(rightVisible);
assertThat(uut.resolveCurrentOptions().sideMenuRootOptions.left.enabled.get()).isFalse();
}
use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class SideMenuControllerTest method createSideMenuOptions.
@NotNull
private Options createSideMenuOptions() {
Options options = new Options();
options.sideMenuRootOptions.left.animate = new Bool(false);
options.sideMenuRootOptions.right.animate = new Bool(false);
return options;
}
use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class SideMenuControllerTest method openRightMenu.
private void openRightMenu() {
Options options = new Options();
options.sideMenuRootOptions.right.visible = new Bool(true);
options.sideMenuRootOptions.right.animate = new Bool(false);
uut.mergeOptions(options);
uut.onDrawerSlide(right.getView(), 1);
}
Aggregations