Skip to content

Commit 2330d2f

Browse files
committed
Fixed issue upgrading to RN 0.49
1 parent fa8dc1e commit 2330d2f

File tree

7 files changed

+1472
-89
lines changed

7 files changed

+1472
-89
lines changed

example/index.ios.js

Lines changed: 0 additions & 5 deletions
This file was deleted.
File renamed without changes.

example/ios/example/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
1818
{
1919
NSURL *jsCodeLocation;
2020

21-
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
21+
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
2222

2323
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
2424
moduleName:@"example"

example/package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
"scripts": {
66
"start": "node node_modules/react-native/local-cli/cli.js start",
77
"lint": "eslint --cache .",
8-
"flow": "flow"
8+
"flow": "flow",
9+
"postinstall":
10+
"rm -rf node_modules/react-native-nested-listview/{node_modules,example}"
911
},
1012
"dependencies": {
11-
"react": "16.0.0-beta.5",
12-
"react-native": "~0.49.2",
13+
"react": "16.0.0",
14+
"react-native": "~0.49.3",
1315
"react-native-nested-listview": "file:../",
1416
"shortid": "^2.2.8"
1517
},
@@ -26,8 +28,5 @@
2628
"prettier": "^1.7.0",
2729
"prettier-eslint": "^8.1.1",
2830
"react-test-renderer": "16.0.0"
29-
},
30-
"jest": {
31-
"preset": "react-native"
3231
}
3332
}

example/yarn.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3719,7 +3719,7 @@ promise@^7.1.1:
37193719
dependencies:
37203720
asap "~2.0.3"
37213721

3722-
prop-types@^15.5.10, prop-types@^15.5.6:
3722+
prop-types@^15.5.10, prop-types@^15.6.0:
37233723
version "15.6.0"
37243724
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.0.tgz#ceaf083022fc46b4a35f69e13ef75aed0d639856"
37253725
dependencies:
@@ -3810,9 +3810,9 @@ react-devtools-core@^2.5.0:
38103810
dependencies:
38113811
shortid "^2.2.8"
38123812

3813-
react-native@~0.49.2:
3814-
version "0.49.2"
3815-
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.49.2.tgz#d40503cee172ad4c74f91a9115a1b11c54c21888"
3813+
react-native@~0.49.3:
3814+
version "0.49.3"
3815+
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.49.3.tgz#0ca459ee49f9c59e8326b2ced9e34c59333a2f26"
38163816
dependencies:
38173817
absolute-path "^0.0.0"
38183818
art "^0.10.0"
@@ -3891,14 +3891,14 @@ react-transform-hmr@^1.0.4:
38913891
global "^4.3.0"
38923892
react-proxy "^1.1.7"
38933893

3894-
react@16.0.0-beta.5:
3895-
version "16.0.0-beta.5"
3896-
resolved "https://registry.yarnpkg.com/react/-/react-16.0.0-beta.5.tgz#b4abba9bce7db72c30633db54a148614b6574e79"
3894+
react@16.0.0:
3895+
version "16.0.0"
3896+
resolved "https://registry.yarnpkg.com/react/-/react-16.0.0.tgz#ce7df8f1941b036f02b2cca9dbd0cb1f0e855e2d"
38973897
dependencies:
3898-
fbjs "^0.8.9"
3898+
fbjs "^0.8.16"
38993899
loose-envify "^1.1.0"
3900-
object-assign "^4.1.0"
3901-
prop-types "^15.5.6"
3900+
object-assign "^4.1.1"
3901+
prop-types "^15.6.0"
39023902

39033903
read-pkg-up@^1.0.1:
39043904
version "1.0.1"

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@
1414
"shortid": "^2.2.8"
1515
},
1616
"peerDependencies": {
17-
"react": "16.0.0-beta.5",
18-
"react-native": "0.49.2"
17+
"react": "16.0.0",
18+
"react-native": "~0.49.3"
1919
},
2020
"devDependencies": {
2121
"babel-eslint": "^8.0.1",
2222
"babel-jest": "^21.2.0",
2323
"babel-preset-react-native": "^4.0.0",
24-
"eslint": "^4.8.0",
25-
"eslint-plugin-flowtype": "^2.39.1",
24+
"eslint": "^4.7.2",
25+
"eslint-plugin-flowtype": "^2.36.0",
2626
"eslint-plugin-react": "^7.4.0",
2727
"eslint-plugin-react-native": "^3.1.0",
28-
"flow-bin": "^0.56.0",
29-
"jest": "^21.2.1",
30-
"prettier": "^1.7.4",
31-
"prettier-eslint": "^8.2.0",
28+
"flow-bin": "^0.55.0",
29+
"jest": "^21.2.0",
30+
"prettier": "^1.7.0",
31+
"prettier-eslint": "^8.1.1",
3232
"react-test-renderer": "16.0.0"
3333
},
3434
"keywords": ["react", "native", "list", "nested"],
@@ -39,6 +39,7 @@
3939
},
4040
"homepage": "https://github.com/fjmorant/react-native-nested-listview#readme",
4141
"jest": {
42-
"preset": "react-native"
42+
"preset": "react-native",
43+
"modulePathIgnorePatterns": ["example"]
4344
}
4445
}

0 commit comments

Comments
 (0)