use of com.reactnativenavigation.options.ButtonOptions in project react-native-navigation by wix.
the class TitleBarHelper method iconButton.
public static ButtonOptions iconButton(String id, String icon) {
ButtonOptions button = new ButtonOptions();
button.id = "someButton";
button.icon = new Text(icon);
return button;
}
use of com.reactnativenavigation.options.ButtonOptions in project react-native-navigation by wix.
the class ButtonSpanTest method createButton.
@NotNull
private ButtonOptions createButton() {
ButtonOptions button = new ButtonOptions();
button.color = new ThemeColour(new Colour(Color.RED));
return button;
}
use of com.reactnativenavigation.options.ButtonOptions 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.ButtonOptions in project react-native-navigation by wix.
the class StackPresenter method mergeButtonsWithColor.
private List<ButtonOptions> mergeButtonsWithColor(@NonNull List<ButtonOptions> buttons, ThemeColour buttonColor, ThemeColour disabledColor) {
List<ButtonOptions> result = new ArrayList<>();
for (ButtonOptions button : buttons) {
ButtonOptions copy = button.copy();
if (!button.color.hasValue())
copy.color = buttonColor;
if (!button.disabledColor.hasValue())
copy.disabledColor = disabledColor;
result.add(copy);
}
return result;
}
use of com.reactnativenavigation.options.ButtonOptions in project react-native-navigation by wix.
the class ButtonPresenterTest method createButton.
private ButtonOptions createButton() {
ButtonOptions b = new ButtonOptions();
b.id = "btn1";
b.text = new Text(BTN_TEXT);
b.showAsAction = new Number(MenuItem.SHOW_AS_ACTION_ALWAYS);
return b;
}
Aggregations