use of com.reactnativenavigation.options.params.Text in project react-native-navigation by wix.
the class TopBarButtonControllerTest method setReactComponentButton.
private void setReactComponentButton() {
button.id = "btnId";
button.component.name = new Text("com.example.customBtn");
button.component.componentId = new Text("component666");
}
use of com.reactnativenavigation.options.params.Text in project react-native-navigation by wix.
the class NavigationIconResolverTest method iconButton.
private ButtonOptions iconButton() {
ButtonOptions button = new ButtonOptions();
button.id = "iconBtnId";
button.icon = new Text(ICON_URI);
button.color = new ThemeColour(new Colour(Color.RED));
return button;
}
use of com.reactnativenavigation.options.params.Text in project react-native-navigation by wix.
the class ExternalComponentViewControllerTest method createExternalComponent.
private ExternalComponent createExternalComponent() {
ExternalComponent component = new ExternalComponent();
component.name = new Text("fragmentComponent");
component.passProps = new JSONObject();
return component;
}
use of com.reactnativenavigation.options.params.Text in project react-native-navigation by wix.
the class NavigatorTest method mergeOptions_CallsApplyNavigationOptions.
@Test
public void mergeOptions_CallsApplyNavigationOptions() {
ComponentViewController componentVc = new SimpleComponentViewController(activity, childRegistry, "theId", new Options());
componentVc.setParentController(parentController);
assertThat(componentVc.options.topBar.title.text.get("")).isEmpty();
uut.setRoot(componentVc, new CommandListenerAdapter(), reactInstanceManager);
Options options = new Options();
options.topBar.title.text = new Text("new title");
uut.mergeOptions("theId", options);
assertThat(componentVc.options.topBar.title.text.get()).isEqualTo("new title");
}
use of com.reactnativenavigation.options.params.Text in project react-native-navigation by wix.
the class TitleBarHelper method textualButton.
public static ButtonOptions textualButton(String text) {
ButtonOptions button = new ButtonOptions();
button.id = text + CompatUtils.generateViewId();
button.text = new Text(text);
return button;
}
Aggregations