Search in sources :

Example 1 with SideMenuRootOptions

use of com.reactnativenavigation.options.SideMenuRootOptions in project react-native-navigation by wix.

the class SideMenuPresenterTest method mergeVisibility_visibilityOptionsAreConsumed.

@Test
public void mergeVisibility_visibilityOptionsAreConsumed() {
    SideMenuRootOptions options = new SideMenuRootOptions();
    options.left.visible = new Bool(true);
    options.right.visible = new Bool(true);
    uut.mergeOptions(options);
    assertFalse(options.right.visible.hasValue());
    assertFalse(options.left.visible.hasValue());
}
Also used : SideMenuRootOptions(com.reactnativenavigation.options.SideMenuRootOptions) Bool(com.reactnativenavigation.options.params.Bool) BaseTest(com.reactnativenavigation.BaseTest) Test(org.junit.Test)

Aggregations

BaseTest (com.reactnativenavigation.BaseTest)1 SideMenuRootOptions (com.reactnativenavigation.options.SideMenuRootOptions)1 Bool (com.reactnativenavigation.options.params.Bool)1 Test (org.junit.Test)1