use of com.reactnativenavigation.options.ComponentOptions in project react-native-navigation by wix.
the class TitleBarHelper method titleComponent.
public static ComponentOptions titleComponent(String componentId) {
ComponentOptions component = new ComponentOptions();
component.componentId = new Text(componentId);
component.name = new Text(componentId);
return component;
}
use of com.reactnativenavigation.options.ComponentOptions in project react-native-navigation by wix.
the class TitleBarReactViewControllerTest method createComponent.
private ComponentOptions createComponent() {
ComponentOptions component = new ComponentOptions();
component.componentId = new Text("compId");
component.name = new Text("compName");
return component;
}
use of com.reactnativenavigation.options.ComponentOptions in project react-native-navigation by wix.
the class TitleBarHelper method reactViewButton.
public static ButtonOptions reactViewButton(String name) {
ButtonOptions button = new ButtonOptions();
button.id = name + CompatUtils.generateViewId();
button.component = new ComponentOptions();
button.component.name = new Text("com.example" + name + CompatUtils.generateViewId());
button.component.componentId = new Text(name + CompatUtils.generateViewId());
return button;
}
Aggregations