Search in sources :

Example 1 with SlidingOverlayParams

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

Example 2 with 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;
}
Also used : SlidingOverlayParams(com.reactnativenavigation.params.SlidingOverlayParams) NavigationParams(com.reactnativenavigation.params.NavigationParams)

Aggregations

SlidingOverlayParams (com.reactnativenavigation.params.SlidingOverlayParams)2 ReactMethod (com.facebook.react.bridge.ReactMethod)1 NavigationParams (com.reactnativenavigation.params.NavigationParams)1 SlidingOverlayParamsParser (com.reactnativenavigation.params.parsers.SlidingOverlayParamsParser)1