use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class SideMenuControllerTest method closeRightMenu.
private void closeRightMenu() {
Options options = new Options();
options.sideMenuRootOptions.right.visible = new Bool(false);
options.sideMenuRootOptions.right.animate = new Bool(false);
uut.mergeOptions(options);
uut.onDrawerSlide(right.getView(), 0);
}
use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class BackButton method setVisible.
public void setVisible() {
visible = new Bool(true);
hasValue = true;
}
use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class BackButton method setHidden.
public void setHidden() {
visible = new Bool(false);
hasValue = true;
}
use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class BackButtonHelperTest method addToChild_doesNotAddIfBackButtonHidden.
@Test
public void addToChild_doesNotAddIfBackButtonHidden() {
disablePushAnimation(child1, child2);
stack.push(child1, new CommandListenerAdapter());
child2.options.topBar.buttons.back.visible = new Bool(false);
stack.push(child2, new CommandListenerAdapter());
verify(child2, times(0)).mergeOptions(any());
}
use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class ButtonPresenterTest method apply_disabledColor.
@Test
public void apply_disabledColor() {
button.enabled = new Bool(false);
addButtonAndApplyOptions();
assertThat(findButtonView().getCurrentTextColor()).isEqualTo(ButtonPresenter.DISABLED_COLOR);
}
Aggregations