Daniel Zlotin před 8 roky
rodič
revize
e7078f57a7

+ 4
- 2
android/app/src/main/java/com/reactnativenavigation/react/ReactViewHacks.java Zobrazit soubor

9
         ReflectionUtils.setField(view, "mAttachScheduled", true);
9
         ReflectionUtils.setField(view, "mAttachScheduled", true);
10
     }
10
     }
11
 
11
 
12
+    /**
13
+     * Must be called before view is removed from screen inorder to ensure onDetachedFromScreen is properly
14
+     * executed and componentWillUnmount is called
15
+     */
12
     public static void ensureUnmountOnDetachedFromWindow(ReactRootView view) {
16
     public static void ensureUnmountOnDetachedFromWindow(ReactRootView view) {
13
-        // Must be called before view is removed from screen inorder to ensure onDetachedFromScreen is properly
14
-        // executed and componentWillUnmount is called
15
         ReflectionUtils.setField(view, "mAttachScheduled", false);
17
         ReflectionUtils.setField(view, "mAttachScheduled", false);
16
     }
18
     }
17
 
19
 

+ 2
- 1
android/app/src/main/java/com/reactnativenavigation/react/ResourceDrawableIdHelper.java Zobrazit soubor

12
 import javax.annotation.Nullable;
12
 import javax.annotation.Nullable;
13
 
13
 
14
 /**
14
 /**
15
- * Helper class for obtaining information about local images.
15
+ * Direct copy paste from react-native, because they made that class package scope. -_-"
16
+ * Can be deleted in react-native ^0.29
16
  */
17
  */
17
 public class ResourceDrawableIdHelper {
18
 public class ResourceDrawableIdHelper {
18
     public static final ResourceDrawableIdHelper instance = new ResourceDrawableIdHelper();
19
     public static final ResourceDrawableIdHelper instance = new ResourceDrawableIdHelper();