Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit 7663625

Browse files
committed
Update SampleApp to RN 0.57.8
1 parent 74c9030 commit 7663625

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

SampleApp/.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"presets": ["react-native"]
2+
"presets": ["module:metro-react-native-babel-preset"]
33
}

SampleApp/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ $ npm run nodemon
1818
```
1919

2020
You can now edit the files in `../`, and they will be synced to `node_modules/react-native-modal-selector/`
21+
22+
23+
# Modifying react-native-modal-selector (RNMS) code during development
24+
25+
The RNMS source code is copied post-install due to a circular symlink bug. If the RNMS code changes, you must run `npm run postinstall` to update it in this sample app.

SampleApp/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
"start": "node node_modules/react-native/local-cli/cli.js start",
77
"flow": "flow --show-all-errors",
88
"test": "jest",
9-
"postinstall": "rm -rf node_modules/react-native-modal-selector/SampleApp",
9+
"postinstall": "cp -f ../*.js node_modules/react-native-modal-selector/",
1010
"nodemon": "nodemon nodemon.json"
1111
},
1212
"dependencies": {
13-
"react": "16.4.1",
14-
"react-native": "0.56.0",
15-
"react-native-modal-selector": "file:../"
13+
"react": "16.6.3",
14+
"react-native": "0.57.8",
15+
"react-native-modal-selector": "*"
1616
},
1717
"devDependencies": {
18-
"babel-jest": "23.4.2",
19-
"babel-preset-react-native": "^5",
20-
"jest": "23.5.0",
18+
"babel-jest": "23.6.0",
19+
"jest": "23.6.0",
20+
"metro-react-native-babel-preset": "0.51.1",
2121
"nodemon": "^1.18.3",
22-
"react-test-renderer": "16.4.1"
22+
"react-test-renderer": "16.6.3"
2323
},
2424
"jest": {
2525
"preset": "react-native"

0 commit comments

Comments
 (0)