Kaynağa Gözat

Changes to RN 0.43 (#1040)

Carlos Roberto 7 yıl önce
ebeveyn
işleme
353968a8ea

+ 1
- 3
android/app/src/main/java/com/reactnativenavigation/react/JsDevReloadListenerReplacer.java Dosyayı Görüntüle

@@ -2,7 +2,6 @@ package com.reactnativenavigation.react;
2 2
 
3 3
 import com.facebook.react.ReactInstanceManager;
4 4
 import com.facebook.react.bridge.JavaJSExecutor;
5
-import com.facebook.react.devsupport.DevSupportManager;
6 5
 import com.facebook.react.devsupport.ReactInstanceDevCommandsHandler;
7 6
 import com.reactnativenavigation.utils.ReflectionUtils;
8 7
 
@@ -27,8 +26,7 @@ public class JsDevReloadListenerReplacer {
27 26
     }
28 27
 
29 28
     private void replaceInDevSupportManager(DevCommandsHandlerProxy proxy) {
30
-        DevSupportManager devSupportManager = (DevSupportManager)
31
-                ReflectionUtils.getDeclaredField(reactInstanceManager, "mDevSupportManager");
29
+        Object devSupportManager = ReflectionUtils.getDeclaredField(reactInstanceManager, "mDevSupportManager");
32 30
         ReflectionUtils.setField(devSupportManager, "mReactInstanceCommandsHandler", proxy);
33 31
     }
34 32
 

+ 2
- 2
package.json Dosyayı Görüntüle

@@ -37,8 +37,8 @@
37 37
     "lodash": "4.x.x"
38 38
   },
39 39
   "devDependencies": {
40
-    "react-native": "0.41.2",
41
-    "react": "15.4.2",
40
+    "react-native": "0.43.0",
41
+    "react": "16.0.0-alpha.6",
42 42
     "babel-cli": "6.x.x",
43 43
     "babel-core": "6.x.x",
44 44
     "babel-polyfill": "6.x.x",