use of com.reactnativenavigation.options.SideMenuOptions in project react-native-navigation by wix.
the class SideMenuControllerTest method openDrawerAndAssertVisibility.
private void openDrawerAndAssertVisibility(ViewController<?> side, Functions.FuncR1<ViewController<?>, SideMenuOptions> opt) {
Options options = new Options();
(side == left ? options.sideMenuRootOptions.left : options.sideMenuRootOptions.right).visible = new Bool(true);
uut.mergeOptions(options);
assertThat(uut.getView().isDrawerOpen(getGravity(side))).isTrue();
assertThat(opt.run(side).visible.isFalseOrUndefined()).isTrue();
}
Aggregations