Bladeren bron

Add screens in invisible state

Guy Carmeli 8 jaren geleden
bovenliggende
commit
c48f51b14b
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1
    0
      android/app/src/main/java/com/reactnativenavigation/screens/ScreenStack.java

+ 1
- 0
android/app/src/main/java/com/reactnativenavigation/screens/ScreenStack.java Bestand weergeven

@@ -64,6 +64,7 @@ public class ScreenStack {
64 64
 
65 65
     private void pushScreenToVisibleStack(final ScreenParams params, RelativeLayout.LayoutParams layoutParams,
66 66
                                           final Screen nextScreen, final Screen previousScreen) {
67
+        nextScreen.setVisibility(View.INVISIBLE);
67 68
         addScreen(nextScreen, layoutParams);
68 69
         nextScreen.setOnDisplayListener(new Screen.OnDisplayListener() {
69 70
             @Override