Daniel Zlotin 8 years ago
parent
commit
0ae4310b5f
2 changed files with 6 additions and 5 deletions
  1. 2
    1
      package.json
  2. 4
    4
      src/deprecated/platformSpecificDeprecated.android.js

+ 2
- 1
package.json View 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 View 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) {