Search in sources :

Example 1 with ContextualMenuParamsParser

use of com.reactnativenavigation.params.parsers.ContextualMenuParamsParser 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);
}
Also used : ContextualMenuParams(com.reactnativenavigation.params.ContextualMenuParams) ContextualMenuParamsParser(com.reactnativenavigation.params.parsers.ContextualMenuParamsParser) ReactMethod(com.facebook.react.bridge.ReactMethod)

Aggregations

ReactMethod (com.facebook.react.bridge.ReactMethod)1 ContextualMenuParams (com.reactnativenavigation.params.ContextualMenuParams)1 ContextualMenuParamsParser (com.reactnativenavigation.params.parsers.ContextualMenuParamsParser)1