Search in sources :

Example 1 with LightBoxParams

use of com.reactnativenavigation.params.LightBoxParams in project react-native-navigation by wix.

the class LightBoxParamsParser method parse.

public LightBoxParams parse() {
    LightBoxParams result = new LightBoxParams();
    if (params.isEmpty()) {
        return result;
    }
    result.screenId = params.getString("screenId");
    result.navigationParams = new NavigationParams(params.getBundle("navigationParams"));
    result.backgroundColor = getColor(params, "backgroundColor");
    result.tapBackgroundToDismiss = params.getBoolean("tapBackgroundToDismiss");
    result.overrideBackPress = params.getBoolean("overrideBackPress");
    result.adjustSoftInput = Adjustment.fromString(params.getString("adjustSoftInput")).value;
    return result;
}
Also used : LightBoxParams(com.reactnativenavigation.params.LightBoxParams) NavigationParams(com.reactnativenavigation.params.NavigationParams)

Example 2 with LightBoxParams

use of com.reactnativenavigation.params.LightBoxParams in project react-native-navigation by wix.

the class NavigationReactModule method showLightBox.

@ReactMethod
public void showLightBox(final ReadableMap params) {
    LightBoxParams lbp = new LightBoxParamsParser(BundleConverter.toBundle(params)).parse();
    NavigationCommandsHandler.showLightBox(lbp);
}
Also used : LightBoxParamsParser(com.reactnativenavigation.params.parsers.LightBoxParamsParser) LightBoxParams(com.reactnativenavigation.params.LightBoxParams) ReactMethod(com.facebook.react.bridge.ReactMethod)

Aggregations

LightBoxParams (com.reactnativenavigation.params.LightBoxParams)2 ReactMethod (com.facebook.react.bridge.ReactMethod)1 NavigationParams (com.reactnativenavigation.params.NavigationParams)1 LightBoxParamsParser (com.reactnativenavigation.params.parsers.LightBoxParamsParser)1