Guy Carmeli 6 anos atrás
pai
commit
6085d2e096

+ 3
- 3
lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/ViewController.java Ver arquivo

@@ -31,7 +31,7 @@ public abstract class ViewController<T extends ViewGroup> implements ViewTreeObs
31 31
 
32 32
     private Runnable onAppearedListener;
33 33
     private boolean appearEventPosted;
34
-    private boolean isFirstayout = true;
34
+    private boolean isFirstLayout = true;
35 35
     private Bool waitForRender = new NullBool();
36 36
 
37 37
     public interface ViewVisibilityListener {
@@ -239,9 +239,9 @@ public abstract class ViewController<T extends ViewGroup> implements ViewTreeObs
239 239
 
240 240
     @Override
241 241
     public void onGlobalLayout() {
242
-        if (isFirstayout) {
242
+        if (isFirstLayout) {
243 243
             onAttachToParent();
244
-            isFirstayout = false;
244
+            isFirstLayout = false;
245 245
         }
246 246
         if (!isShown && isViewShown()) {
247 247
             if (!viewVisibilityListener.onViewAppeared(view)) {