Browse Source

Finish SplahActivity if react context exists

Fixes #1938 Closes #1900
Guy Carmeli 7 years ago
parent
commit
5c266e4436

+ 4
- 0
android/app/src/main/java/com/reactnativenavigation/controllers/SplashActivity.java View File

27
 
27
 
28
         if (NavigationApplication.instance.getReactGateway().hasStartedCreatingContext()) {
28
         if (NavigationApplication.instance.getReactGateway().hasStartedCreatingContext()) {
29
             NavigationApplication.instance.getEventEmitter().sendAppLaunchedEvent();
29
             NavigationApplication.instance.getEventEmitter().sendAppLaunchedEvent();
30
+            if (NavigationApplication.instance.clearHostOnActivityDestroy()) {
31
+                overridePendingTransition(0, 0);
32
+                finish();
33
+            }
30
             return;
34
             return;
31
         }
35
         }
32
 
36