Parcourir la source

Merge branch 'master' into upgrade

Daniel Zlotin il y a 8 ans
Parent
révision
23fd224b4a

+ 2
- 1
android/app/src/main/java/com/reactnativenavigation/react/NavigationReactGateway.java Voir le fichier

@@ -74,7 +74,8 @@ public class NavigationReactGateway implements ReactGateway {
74 74
     }
75 75
 
76 76
     public void onActivityResult(int requestCode, int resultCode, Intent data) {
77
-        getReactInstanceManager().onActivityResult(requestCode, resultCode, data);
77
+        Activity currentActivity = getReactInstanceManager().getCurrentReactContext().getCurrentActivity();
78
+        getReactInstanceManager().onActivityResult(currentActivity, requestCode, resultCode, data);
78 79
     }
79 80
 
80 81
     public ReactNativeHost getReactNativeHost() {

+ 3
- 3
src/deprecated/platformSpecificDeprecated.ios.js Voir le fichier

@@ -184,10 +184,10 @@ function _mergeScreenSpecificSettings(screenID, screenInstanceID, params) {
184 184
     Object.assign(navigatorStyle, params.navigatorStyle);
185 185
   }
186 186
 
187
-  const navigatorEventID = screenInstanceID + '_events';
188
-  const navigatorButtons = Object.assign({}, screenClass.navigatorButtons);
187
+  let navigatorEventID = screenInstanceID + '_events';
188
+  let navigatorButtons = JSON.parse(JSON.stringify(screenClass.navigatorButtons));
189 189
   if (params.navigatorButtons) {
190
-    Object.assign(navigatorButtons, params.navigatorButtons);
190
+    navigatorButtons = JSON.parse(JSON.stringify(params.navigatorButtons));
191 191
   }
192 192
   if (navigatorButtons.leftButtons) {
193 193
     for (let i = 0; i < navigatorButtons.leftButtons.length; i++) {