|
@@ -45,10 +45,17 @@ public class NavigationReactModule extends ReactContextBaseJavaModule {
|
45
|
45
|
@ReactMethod
|
46
|
46
|
public void startApp(final ReadableMap params) {
|
47
|
47
|
boolean portraitOnlyMode = false;
|
|
48
|
+ boolean landscapeOnlyMode = false;
|
|
49
|
+
|
48
|
50
|
if (params.hasKey("portraitOnlyMode")) {
|
49
|
51
|
portraitOnlyMode = params.getBoolean("portraitOnlyMode");
|
50
|
52
|
}
|
51
|
|
- NavigationCommandsHandler.startApp(BundleConverter.toBundle(params), portraitOnlyMode);
|
|
53
|
+
|
|
54
|
+ if (params.hasKey(("landscapeOnlyMode"))) {
|
|
55
|
+ landscapeOnlyMode = params.getBoolean("landscapeOnlyMode");
|
|
56
|
+ }
|
|
57
|
+
|
|
58
|
+ NavigationCommandsHandler.startApp(BundleConverter.toBundle(params), portraitOnlyMode, landscapeOnlyMode);
|
52
|
59
|
}
|
53
|
60
|
|
54
|
61
|
@ReactMethod
|