Browse Source

upgrade to RN 25.1 JS changes

Artal Druk 8 years ago
parent
commit
237abdbfb4

+ 10
- 2
example/ios/example.xcodeproj/project.pbxproj View File

@@ -651,7 +651,10 @@
651 651
 				INFOPLIST_FILE = example/Info.plist;
652 652
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
653 653
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
654
-				OTHER_LDFLAGS = "-ObjC";
654
+				OTHER_LDFLAGS = (
655
+					"-ObjC",
656
+					"-l\"c++\"",
657
+				);
655 658
 				PRODUCT_NAME = example;
656 659
 			};
657 660
 			name = Debug;
@@ -669,7 +672,10 @@
669 672
 				INFOPLIST_FILE = example/Info.plist;
670 673
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
671 674
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
672
-				OTHER_LDFLAGS = "-ObjC";
675
+				OTHER_LDFLAGS = (
676
+					"-ObjC",
677
+					"-l\"c++\"",
678
+				);
673 679
 				PRODUCT_NAME = example;
674 680
 			};
675 681
 			name = Release;
@@ -716,6 +722,7 @@
716 722
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
717 723
 				MTL_ENABLE_DEBUG_INFO = YES;
718 724
 				ONLY_ACTIVE_ARCH = YES;
725
+				OTHER_LDFLAGS = "";
719 726
 				SDKROOT = iphoneos;
720 727
 			};
721 728
 			name = Debug;
@@ -755,6 +762,7 @@
755 762
 				);
756 763
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
757 764
 				MTL_ENABLE_DEBUG_INFO = NO;
765
+				OTHER_LDFLAGS = "";
758 766
 				SDKROOT = iphoneos;
759 767
 				VALIDATE_PRODUCT = YES;
760 768
 			};

+ 2
- 1
example/package.json View File

@@ -6,7 +6,8 @@
6 6
     "start": "node node_modules/react-native/local-cli/cli.js start"
7 7
   },
8 8
   "dependencies": {
9
-    "react-native": "^0.21.0",
9
+    "react-native": "0.25.1",
10
+    "react": "0.14.5",
10 11
     "react-native-navigation": "latest"
11 12
   }
12 13
 }

+ 3
- 3
example/src/app.js View File

@@ -1,6 +1,6 @@
1
-import React, {
1
+import React, {Component} from 'react';
2
+import {
2 3
   AppRegistry,
3
-  Component,
4 4
   View
5 5
 } from 'react-native';
6 6
 import { Navigation } from 'react-native-navigation';
@@ -11,7 +11,7 @@ registerScreens();
11 11
 
12 12
 AppRegistry.registerComponent('App', () => App);
13 13
 
14
-export default class App extends React.Component {
14
+export default class App extends Component {
15 15
   constructor(props) {
16 16
     super(props);
17 17
   }

+ 2
- 2
example/src/screens/FirstTabScreen.android.js View File

@@ -1,5 +1,5 @@
1
-import React, {
2
-  Component,
1
+import React, {Component} from 'react';
2
+import {
3 3
   Text,
4 4
   View,
5 5
   ScrollView,

+ 2
- 2
example/src/screens/FirstTabScreen.ios.js View File

@@ -1,5 +1,5 @@
1
-import React, {
2
-  Component,
1
+import React, {Component} from 'react';
2
+import {
3 3
   Text,
4 4
   View,
5 5
   ScrollView,

+ 2
- 2
example/src/screens/LightBoxScreen.js View File

@@ -1,5 +1,5 @@
1
-import React, {
2
-  Component,
1
+import React, {Component} from 'react';
2
+import {
3 3
   Text,
4 4
   View,
5 5
   ScrollView,

+ 2
- 2
example/src/screens/ModalScreen.js View File

@@ -1,5 +1,5 @@
1
-import React, {
2
-  Component,
1
+import React, {Component} from 'react';
2
+import {
3 3
   Text,
4 4
   View,
5 5
   ScrollView,

+ 2
- 2
example/src/screens/PushedScreen.js View File

@@ -1,5 +1,5 @@
1
-import React, {
2
-  Component,
1
+import React, {Component} from 'react';
2
+import {
3 3
   Text,
4 4
   View,
5 5
   ScrollView,

+ 2
- 2
example/src/screens/SecondTabScreen.android.js View File

@@ -1,5 +1,5 @@
1
-import React, {
2
-  Component,
1
+import React, {Component} from 'react';
2
+import {
3 3
   Text,
4 4
   View,
5 5
   ScrollView,

+ 2
- 2
example/src/screens/SecondTabScreen.ios.js View File

@@ -1,5 +1,5 @@
1
-import React, {
2
-  Component,
1
+import React, {Component} from 'react';
2
+import {
3 3
   Text,
4 4
   View,
5 5
   ScrollView,

+ 2
- 2
example/src/screens/SideMenu.js View File

@@ -1,5 +1,5 @@
1
-import React, {
2
-  Component,
1
+import React, {Component} from 'react';
2
+import {
3 3
   Text,
4 4
   View,
5 5
   ScrollView,

+ 2
- 2
example/src/screens/StyledScreen.js View File

@@ -1,5 +1,5 @@
1
-import React, {
2
-  Component,
1
+import React, {Component} from 'react';
2
+import {
3 3
   Text,
4 4
   View,
5 5
   ScrollView,

+ 2
- 2
example/src/screens/ThirdTabScreen.js View File

@@ -1,5 +1,5 @@
1
-import React, {
2
-  Component,
1
+import React, {Component} from 'react';
2
+import {
3 3
   Text,
4 4
   View,
5 5
   ScrollView,

+ 4
- 3
package.json View File

@@ -7,7 +7,7 @@
7 7
     "type": "git",
8 8
     "url": "https://github.com/wix/react-native-navigation.git"
9 9
   },
10
-  "version": "0.2.5",
10
+  "version": "1.0.0",
11 11
   "description": "React Native Navigation - truly native navigation for iOS and Android",
12 12
   "nativePackage": true,
13 13
   "bugs": {
@@ -18,10 +18,11 @@
18 18
   "author": "Tal Kol <talkol@gmail.com>",
19 19
   "license": "MIT",
20 20
   "peerDependencies": {
21
-    "react-native": ">=0.25.1"
21
+    "react-native": ">=0.25.1",
22
+    "react": ">=0.14.5"
22 23
   },
23 24
   "dependencies": {
24
-    "react-native-controllers": "github:wix/react-native-controllers#upgradeRN25"
25
+    "react-native-controllers": "^2.0.0"
25 26
   },
26 27
   "optionalDependencies": {
27 28
     "react-redux": "*"

+ 2
- 1
src/Navigation.js View File

@@ -1,4 +1,5 @@
1
-import React, { AppRegistry } from 'react-native';
1
+import React from 'react';
2
+import { AppRegistry } from 'react-native';
2 3
 import platformSpecific from './platformSpecific';
3 4
 import Screen from './Screen';
4 5
 

+ 1
- 1
src/Screen.js View File

@@ -1,5 +1,5 @@
1
+import React, {Component} from 'react';
1 2
 import {
2
-  Component,
3 3
   NativeAppEventEmitter,
4 4
   DeviceEventEmitter,
5 5
   Platform

+ 3
- 3
src/platformSpecific.android.js View File

@@ -1,6 +1,6 @@
1
-import React, {
2
-  AppRegistry,
3
-  Component
1
+import React, {Component} from 'react';
2
+import {
3
+  AppRegistry
4 4
 } from 'react-native';
5 5
 
6 6
 import Navigation from './Navigation';