|
@@ -25,6 +25,7 @@ public abstract class NavigationApplication extends Application {
|
25
|
25
|
super.onCreate();
|
26
|
26
|
instance = this;
|
27
|
27
|
handler = new Handler(getMainLooper());
|
|
28
|
+ navigationReactInstance = new NavigationReactInstance();
|
28
|
29
|
}
|
29
|
30
|
|
30
|
31
|
public void runOnMainThread(Runnable runnable) {
|
|
@@ -72,6 +73,10 @@ public abstract class NavigationApplication extends Application {
|
72
|
73
|
return navigationReactInstance.getReactInstanceManager().getCurrentReactContext();
|
73
|
74
|
}
|
74
|
75
|
|
|
76
|
+ public boolean isReactInstanceManagerInitialized() {
|
|
77
|
+ return navigationReactInstance.getReactInstanceManager() != null;
|
|
78
|
+ }
|
|
79
|
+
|
75
|
80
|
public abstract boolean isDebug();
|
76
|
81
|
|
77
|
82
|
@NonNull
|
|
@@ -90,7 +95,6 @@ public abstract class NavigationApplication extends Application {
|
90
|
95
|
}
|
91
|
96
|
|
92
|
97
|
public void startReactContext() {
|
93
|
|
- navigationReactInstance = new NavigationReactInstance();
|
94
|
98
|
navigationReactInstance.startReactContextOnceInBackgroundAndExecuteJS();
|
95
|
99
|
}
|
96
|
100
|
}
|