Search in sources :

Example 1 with ComponentOptions

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;
}
Also used : ComponentOptions(com.reactnativenavigation.options.ComponentOptions) Text(com.reactnativenavigation.options.params.Text)

Example 2 with ComponentOptions

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;
}
Also used : ComponentOptions(com.reactnativenavigation.options.ComponentOptions) Text(com.reactnativenavigation.options.params.Text)

Example 3 with ComponentOptions

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;
}
Also used : ButtonOptions(com.reactnativenavigation.options.ButtonOptions) ComponentOptions(com.reactnativenavigation.options.ComponentOptions) Text(com.reactnativenavigation.options.params.Text)

Aggregations

ComponentOptions (com.reactnativenavigation.options.ComponentOptions)3 Text (com.reactnativenavigation.options.params.Text)3 ButtonOptions (com.reactnativenavigation.options.ButtonOptions)1