use of com.reactnativenavigation.params.ContextualMenuParams in project react-native-navigation by wix.
the class NavigationReactModule method showContextualMenu.
@ReactMethod
public void showContextualMenu(final String screenInstanceId, final ReadableMap params, final Callback onButtonClicked) {
ContextualMenuParams contextualMenuParams = new ContextualMenuParamsParser().parse(BundleConverter.toBundle(params));
NavigationCommandsHandler.showContextualMenu(screenInstanceId, contextualMenuParams, onButtonClicked);
}
use of com.reactnativenavigation.params.ContextualMenuParams in project react-native-navigation by wix.
the class ContextualMenuParamsParser method parse.
public ContextualMenuParams parse(Bundle bundle) {
ContextualMenuParams result = new ContextualMenuParams();
result.buttons = new ContextualMenuButtonParamsParser().parseContextualMenuButtons(bundle.getBundle("buttons"));
result.leftButton = new TitleBarLeftButtonParamsParser().parseSingleButton(bundle.getBundle("backButton"));
result.navigationParams = new NavigationParams(bundle.getBundle("navigationParams"));
return result;
}
Aggregations