Browse Source

Merge branch 'master' into upgrade

Daniel Zlotin 8 years ago
parent
commit
23fd224b4a

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

74
     }
74
     }
75
 
75
 
76
     public void onActivityResult(int requestCode, int resultCode, Intent data) {
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
     public ReactNativeHost getReactNativeHost() {
81
     public ReactNativeHost getReactNativeHost() {

+ 3
- 3
src/deprecated/platformSpecificDeprecated.ios.js View File

184
     Object.assign(navigatorStyle, params.navigatorStyle);
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
   if (params.navigatorButtons) {
189
   if (params.navigatorButtons) {
190
-    Object.assign(navigatorButtons, params.navigatorButtons);
190
+    navigatorButtons = JSON.parse(JSON.stringify(params.navigatorButtons));
191
   }
191
   }
192
   if (navigatorButtons.leftButtons) {
192
   if (navigatorButtons.leftButtons) {
193
     for (let i = 0; i < navigatorButtons.leftButtons.length; i++) {
193
     for (let i = 0; i < navigatorButtons.leftButtons.length; i++) {