use of com.reactnativenavigation.params.SlidingOverlayParams in project react-native-navigation by wix.
the class NavigationReactModule method showSlidingOverlay.
@ReactMethod
public void showSlidingOverlay(final ReadableMap params) {
SlidingOverlayParams slidingOverlayParams = new SlidingOverlayParamsParser().parse(BundleConverter.toBundle(params));
NavigationCommandsHandler.showSlidingOverlay(slidingOverlayParams);
}
use of com.reactnativenavigation.params.SlidingOverlayParams in project react-native-navigation by wix.
the class SlidingOverlayParamsParser method parse.
public SlidingOverlayParams parse(Bundle bundle) {
final SlidingOverlayParams result = new SlidingOverlayParams();
result.screenInstanceId = bundle.getString("screen");
result.navigationParams = new NavigationParams(bundle.getBundle("navigationParams"));
result.autoDismissTimerSec = bundle.containsKey("autoDismissTimerSec") ? bundle.getInt("autoDismissTimerSec") : null;
result.position = SlidingOverlayParams.Position.fromString(bundle.getString("position", "top"));
return result;
}
Aggregations