Skip to content

Commit 237abdb

Browse files
committed
upgrade to RN 25.1 JS changes
1 parent a8649d7 commit 237abdb

17 files changed

+45
-34
lines changed

example/ios/example.xcodeproj/project.pbxproj

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,10 @@
651651
INFOPLIST_FILE = example/Info.plist;
652652
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
653653
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
654-
OTHER_LDFLAGS = "-ObjC";
654+
OTHER_LDFLAGS = (
655+
"-ObjC",
656+
"-l\"c++\"",
657+
);
655658
PRODUCT_NAME = example;
656659
};
657660
name = Debug;
@@ -669,7 +672,10 @@
669672
INFOPLIST_FILE = example/Info.plist;
670673
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
671674
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
672-
OTHER_LDFLAGS = "-ObjC";
675+
OTHER_LDFLAGS = (
676+
"-ObjC",
677+
"-l\"c++\"",
678+
);
673679
PRODUCT_NAME = example;
674680
};
675681
name = Release;
@@ -716,6 +722,7 @@
716722
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
717723
MTL_ENABLE_DEBUG_INFO = YES;
718724
ONLY_ACTIVE_ARCH = YES;
725+
OTHER_LDFLAGS = "";
719726
SDKROOT = iphoneos;
720727
};
721728
name = Debug;
@@ -755,6 +762,7 @@
755762
);
756763
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
757764
MTL_ENABLE_DEBUG_INFO = NO;
765+
OTHER_LDFLAGS = "";
758766
SDKROOT = iphoneos;
759767
VALIDATE_PRODUCT = YES;
760768
};

example/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"start": "node node_modules/react-native/local-cli/cli.js start"
77
},
88
"dependencies": {
9-
"react-native": "^0.21.0",
9+
"react-native": "0.25.1",
10+
"react": "0.14.5",
1011
"react-native-navigation": "latest"
1112
}
1213
}

example/src/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React, {
1+
import React, {Component} from 'react';
2+
import {
23
AppRegistry,
3-
Component,
44
View
55
} from 'react-native';
66
import { Navigation } from 'react-native-navigation';
@@ -11,7 +11,7 @@ registerScreens();
1111

1212
AppRegistry.registerComponent('App', () => App);
1313

14-
export default class App extends React.Component {
14+
export default class App extends Component {
1515
constructor(props) {
1616
super(props);
1717
}

example/src/screens/FirstTabScreen.android.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React, {
2-
Component,
1+
import React, {Component} from 'react';
2+
import {
33
Text,
44
View,
55
ScrollView,

example/src/screens/FirstTabScreen.ios.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React, {
2-
Component,
1+
import React, {Component} from 'react';
2+
import {
33
Text,
44
View,
55
ScrollView,

example/src/screens/LightBoxScreen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React, {
2-
Component,
1+
import React, {Component} from 'react';
2+
import {
33
Text,
44
View,
55
ScrollView,

example/src/screens/ModalScreen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React, {
2-
Component,
1+
import React, {Component} from 'react';
2+
import {
33
Text,
44
View,
55
ScrollView,

example/src/screens/PushedScreen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React, {
2-
Component,
1+
import React, {Component} from 'react';
2+
import {
33
Text,
44
View,
55
ScrollView,

example/src/screens/SecondTabScreen.android.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React, {
2-
Component,
1+
import React, {Component} from 'react';
2+
import {
33
Text,
44
View,
55
ScrollView,

example/src/screens/SecondTabScreen.ios.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React, {
2-
Component,
1+
import React, {Component} from 'react';
2+
import {
33
Text,
44
View,
55
ScrollView,

0 commit comments

Comments
 (0)