Kaynağa Gözat

Add root once

Guy Carmeli 6 yıl önce
ebeveyn
işleme
32bf636d1d

+ 1
- 2
lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/Navigator.java Dosyayı Görüntüle

@@ -78,8 +78,8 @@ public class Navigator extends ParentController implements ModalListener {
78 78
         View view = viewController.getView();
79 79
 
80 80
         AnimationsOptions animationsOptions = viewController.options.animationsOptions;
81
+        getView().addView(view);
81 82
         if (animationsOptions.startApp.hasValue()) {
82
-            getView().addView(view);
83 83
             new NavigationAnimator(viewController.getActivity(), animationsOptions)
84 84
                     .animateStartApp(view, new AnimatorListenerAdapter() {
85 85
                         @Override
@@ -88,7 +88,6 @@ public class Navigator extends ParentController implements ModalListener {
88 88
                         }
89 89
                     });
90 90
         } else {
91
-            getView().addView(view);
92 91
             promise.resolve(viewController.getId());
93 92
         }
94 93
     }