use of com.reactnativenavigation.options.params.Text in project react-native-navigation by wix.
the class TitleBarButtonControllerTest method createComponentButton.
private ButtonOptions createComponentButton() {
ButtonOptions componentButton = new ButtonOptions();
componentButton.id = "customBtn";
componentButton.component.name = new Text("com.rnn.customBtn");
componentButton.component.componentId = new Text("component4");
return componentButton;
}
use of com.reactnativenavigation.options.params.Text in project react-native-navigation by wix.
the class BottomTabPresenterTest method createTab2Options.
private Options createTab2Options() {
Options options = new Options();
options.bottomTabOptions.badge = new Text("tab2badge");
options.bottomTabOptions.iconColor = new ThemeColour(new Colour(Color.RED));
options.bottomTabOptions.selectedIconColor = new ThemeColour(new Colour(Color.RED));
return options;
}
use of com.reactnativenavigation.options.params.Text in project react-native-navigation by wix.
the class OptionHelper method createBottomTabOptions.
public static Options createBottomTabOptions() {
Options options = new Options();
options.topBar.buttons.left = new ArrayList<>();
options.bottomTabOptions.text = new Text("Tab");
options.bottomTabOptions.icon = new Text("http://127.0.0.1/icon.png");
return options;
}
use of com.reactnativenavigation.options.params.Text in project react-native-navigation by wix.
the class BottomTabPresenterTest method createTab1Options.
private Options createTab1Options() {
Options options = new Options();
options.bottomTabOptions.badge = new Text("tab1badge");
options.bottomTabOptions.iconColor = new ThemeColour(new Colour(Color.RED));
options.bottomTabOptions.selectedIconColor = new ThemeColour(new Colour(Color.RED));
return options;
}
use of com.reactnativenavigation.options.params.Text in project react-native-navigation by wix.
the class ParentControllerTest method mergeOptions_optionsAreMergedWhenChildAppears.
@Test
public void mergeOptions_optionsAreMergedWhenChildAppears() {
Options options = new Options();
options.topBar.title.text = new Text("new title");
ViewController<?> child1 = spy(new SimpleViewController(activity, childRegistry, "child1", options));
children.add(child1);
uut.ensureViewIsCreated();
child1.ensureViewIsCreated();
child1.onViewWillAppear();
ArgumentCaptor<Options> optionsCaptor = ArgumentCaptor.forClass(Options.class);
verify(uut, times(1)).clearOptions();
verify(uut, times(1)).applyChildOptions(optionsCaptor.capture(), eq(child1));
assertThat(optionsCaptor.getValue().topBar.title.text.get()).isEqualTo("new title");
}
Aggregations