Browse Source

improved es6 syntax, thanks tautvilas

talkol 8 years ago
parent
commit
016c655032
4 changed files with 4 additions and 4 deletions
  1. 1
    1
      package.json
  2. 1
    1
      src/Navigation.js
  3. 1
    1
      src/platformSpecific.ios.js
  4. 1
    1
      src/utils.js

+ 1
- 1
package.json View File

7
     "type": "git",
7
     "type": "git",
8
     "url": "https://github.com/wix/react-native-navigation.git"
8
     "url": "https://github.com/wix/react-native-navigation.git"
9
   },
9
   },
10
-  "version": "0.1.3",
10
+  "version": "0.1.4",
11
   "description": "React Native Navigation - truly native navigation for iOS and Android",
11
   "description": "React Native Navigation - truly native navigation for iOS and Android",
12
   "nativePackage": true,
12
   "nativePackage": true,
13
   "bugs": {
13
   "bugs": {

+ 1
- 1
src/Navigation.js View File

67
   return platformSpecific.dismissModal(params);
67
   return platformSpecific.dismissModal(params);
68
 }
68
 }
69
 
69
 
70
-export default Navigation = {
70
+export default {
71
   registerScreen,
71
   registerScreen,
72
   getRegisteredScreen,
72
   getRegisteredScreen,
73
   registerComponent,
73
   registerComponent,

+ 1
- 1
src/platformSpecific.ios.js View File

308
   Modal.dismissController(params.animationType);
308
   Modal.dismissController(params.animationType);
309
 }
309
 }
310
 
310
 
311
-export default platformSpecific = {
311
+export default {
312
   startTabBasedApp,
312
   startTabBasedApp,
313
   startSingleScreenApp,
313
   startSingleScreenApp,
314
   navigatorPush,
314
   navigatorPush,

+ 1
- 1
src/utils.js View File

2
   return (Math.random()*1e20).toString(36);
2
   return (Math.random()*1e20).toString(36);
3
 }
3
 }
4
 
4
 
5
-export default utils = {
5
+export default {
6
   getRandomId
6
   getRandomId
7
 }
7
 }