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;
}
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);
}
Aggregations