Daniel Zlotin 8 anni fa
parent
commit
0ae4310b5f
2 ha cambiato i file con 6 aggiunte e 5 eliminazioni
  1. 2
    1
      package.json
  2. 4
    4
      src/deprecated/platformSpecificDeprecated.android.js

+ 2
- 1
package.json Vedi File

@@ -31,7 +31,8 @@
31 31
   },
32 32
   "dependencies": {
33 33
     "react-native-controllers": "^2.0.0",
34
-    "lodash": "^4.13.0"
34
+    "lodash": "^4.13.0",
35
+    "babel-preset-react-native-stage-0": "^1.0.0"
35 36
   },
36 37
   "optionalDependencies": {
37 38
     "react-redux": "*"

+ 4
- 4
src/deprecated/platformSpecificDeprecated.android.js Vedi File

@@ -33,15 +33,15 @@ function startSingleScreenApp(params) {
33 33
 }
34 34
 
35 35
 function navigatorPush(navigator, params) {
36
-  debugger;
37 36
   addNavigatorParams(params, navigator);
38 37
   addNavigatorButtons(params);
39 38
   addNavigationStyleParams(params);
40 39
 
41
-  params = adaptNavigationStyleToScreenStyle(params);
42
-  params = adaptNavigationParams(params);
40
+  params.screenId = params.screen;
41
+  let adapted = adaptNavigationStyleToScreenStyle(params);
42
+  adapted = adaptNavigationParams(params);
43 43
 
44
-  newPlatformSpecific.push(params);
44
+  newPlatformSpecific.push(adapted);
45 45
 }
46 46
 
47 47
 function adaptNavigationStyleToScreenStyle(screen) {