Skip to content

Commit c05362b

Browse files
committed
upgrate to RN 0.57.8 using react-native-git-upgrade
1 parent 6e19f99 commit c05362b

File tree

7 files changed

+242
-385
lines changed

7 files changed

+242
-385
lines changed
-362 Bytes
Loading
-110 Bytes
Loading
-273 Bytes
Loading
-1.22 KB
Loading

ios/Boilerplate/AppDelegate.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
1616
{
1717
NSURL *jsCodeLocation;
1818

19-
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
19+
#ifdef DEBUG
20+
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
21+
#else
22+
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
23+
#endif
2024

2125
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
2226
moduleName:@"Boilerplate"

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"apisauce": "^0.15.2",
1616
"immutable": "^3.8.2",
1717
"prop-types": "^15.6.1",
18-
"react": "16.5.0",
19-
"react-native": "0.57.1",
18+
"react": "16.6.3",
19+
"react-native": "0.57.8",
2020
"react-navigation": "^2.12.1",
2121
"react-redux": "^5.0.7",
2222
"redux": "^3.7.2",
@@ -28,7 +28,6 @@
2828
"devDependencies": {
2929
"babel-core": "7.0.0-bridge.0",
3030
"babel-jest": "23.2.0",
31-
"metro-react-native-babel-preset": "^0.45.0",
3231
"eslint": "^4.19.1",
3332
"eslint-config-prettier": "^2.9.0",
3433
"eslint-config-standard": "^11.0.0",
@@ -40,6 +39,7 @@
4039
"eslint-plugin-react-native": "^3.2.1",
4140
"eslint-plugin-standard": "^3.0.1",
4241
"jest": "23.3.0",
42+
"metro-react-native-babel-preset": "^0.45.0",
4343
"prettier": "^1.11.1",
4444
"react-native-rename": "^2.2.2",
4545
"react-test-renderer": "16.3.1"

yarn.lock

Lines changed: 234 additions & 381 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)