Browse Source

fixed incorrect export of iOS into android index

Daniel Zlotin 8 years ago
parent
commit
2458759070

+ 1
- 1
example-redux/package.json View File

@@ -3,7 +3,7 @@
3 3
   "version": "0.0.1",
4 4
   "private": true,
5 5
   "scripts": {
6
-    "start": "node node_modules/react-native/local-cli/cli.js start"
6
+    "start": "watchman watch-del-all && node node_modules/react-native/local-cli/cli.js start"
7 7
   },
8 8
   "dependencies": {
9 9
     "react-native": "0.25.1",

+ 6
- 0
src/deprecated/indexDeprecated.android.js View File

@@ -0,0 +1,6 @@
1
+import Navigation from './../Navigation';
2
+
3
+module.exports = {
4
+  Navigation
5
+};
6
+

+ 8
- 0
src/deprecated/indexDeprecated.ios.js View File

@@ -0,0 +1,8 @@
1
+import Navigation from './../Navigation';
2
+import {NavigationToolBarIOS} from 'react-native-controllers';
3
+
4
+module.exports = {
5
+  Navigation,
6
+  NavigationToolBarIOS
7
+};
8
+

+ 1
- 7
src/index.js View File

@@ -1,7 +1 @@
1
-import Navigation from './Navigation';
2
-import {NavigationToolBarIOS} from 'react-native-controllers';
3
-
4
-module.exports = {
5
-  Navigation,
6
-  NavigationToolBarIOS
7
-};
1
+module.exports = require('./deprecated/indexDeprecated');