Daniel Zlotin 8 years ago
parent
commit
e7078f57a7

+ 4
- 2
android/app/src/main/java/com/reactnativenavigation/react/ReactViewHacks.java View File

@@ -9,9 +9,11 @@ public class ReactViewHacks {
9 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 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 17
         ReflectionUtils.setField(view, "mAttachScheduled", false);
16 18
     }
17 19
 

+ 2
- 1
android/app/src/main/java/com/reactnativenavigation/react/ResourceDrawableIdHelper.java View File

@@ -12,7 +12,8 @@ import java.util.Map;
12 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 18
 public class ResourceDrawableIdHelper {
18 19
     public static final ResourceDrawableIdHelper instance = new ResourceDrawableIdHelper();