Search in sources :

Example 1 with OrientationOptions

use of com.reactnativenavigation.options.OrientationOptions in project react-native-navigation by wix.

the class StackPresenter method applyOrientation.

public void applyOrientation(OrientationOptions options) {
    OrientationOptions withDefaultOptions = options.copy().mergeWithDefault(defaultOptions.layout.orientation);
    ((Activity) topBar.getContext()).setRequestedOrientation(withDefaultOptions.getValue());
}
Also used : OrientationOptions(com.reactnativenavigation.options.OrientationOptions) Activity(android.app.Activity)

Aggregations

Activity (android.app.Activity)1 OrientationOptions (com.reactnativenavigation.options.OrientationOptions)1