Skip to content

Commit 56df72a

Browse files
committed
Update for Expo SDK 23
1 parent 6899985 commit 56df72a

File tree

4 files changed

+33
-28
lines changed

4 files changed

+33
-28
lines changed

react-native-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-scripts",
3-
"version": "1.7.0",
3+
"version": "1.8.0",
44
"description": "Configuration and scripts for Create React Native App.",
55
"license": "BSD-3-Clause",
66
"keywords": [

react-native-scripts/src/scripts/init.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ import install from '../util/install';
1010

1111
// UPDATE DEPENDENCY VERSIONS HERE
1212
const DEFAULT_DEPENDENCIES = {
13-
expo: '^22.0.2',
14-
react: '16.0.0-beta.5',
15-
'react-native': '^0.49.5',
13+
expo: '^23.0.4',
14+
react: '16.0.0',
15+
'react-native': '0.50.3',
1616
};
1717

1818
// TODO figure out how this interacts with ejection
1919
const DEFAULT_DEV_DEPENDENCIES = {
20-
'jest-expo': '^22.0.0',
21-
'react-test-renderer': '16.0.0-beta.5',
20+
'jest-expo': '23.0.0',
21+
'react-test-renderer': '16.0.0',
2222
};
2323

2424
module.exports = async (appPath: string, appName: string, verbose: boolean, cwd: string = '') => {

react-native-scripts/template/.flowconfig

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,39 @@
33
.*/*[.]android.js
44

55
; Ignore templates for 'react-native init'
6-
.*/local-cli/templates/.*
6+
<PROJECT_ROOT>/node_modules/react-native/local-cli/templates/.*
7+
8+
; Ignore RN jest
9+
<PROJECT_ROOT>/node_modules/react-native/jest/.*
10+
11+
; Ignore RNTester
12+
<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
713

814
; Ignore the website subdir
915
<PROJECT_ROOT>/node_modules/react-native/website/.*
1016

1117
; Ignore the Dangerfile
1218
<PROJECT_ROOT>/node_modules/react-native/danger/dangerfile.js
1319

20+
; Ignore Fbemitter
21+
<PROJECT_ROOT>/node_modules/fbemitter/.*
22+
1423
; Ignore "BUCK" generated dirs
1524
<PROJECT_ROOT>/node_modules/react-native/\.buckd/
1625

1726
; Ignore unexpected extra "@providesModule"
1827
.*/node_modules/.*/node_modules/fbjs/.*
19-
.*/node_modules/fbemitter/.*
20-
21-
; Ignore duplicate module providers
22-
; For RN Apps installed via npm, "Libraries" folder is inside
23-
; "node_modules/react-native" but in the source repo it is in the root
24-
.*/Libraries/react-native/React.js
2528

2629
; Ignore polyfills
27-
.*/Libraries/polyfills/.*
30+
<PROJECT_ROOT>/node_modules/react-native/Libraries/polyfills/.*
2831

29-
; Ignore misbehaving dev-dependencies
30-
.*/node_modules/reqwest/.*
31-
.*/node_modules/xdl/.*
32-
33-
; Ignore expo dependencies
34-
35-
; Ignore Expo SDK + some of it's dependencies temporarily:
36-
; https://github.com/expo/expo/issues/162
37-
.*/node_modules/expo/src/.*
38-
.*/node_modules/react-native-gesture-handler/.*
32+
; Ignore various node_modules
33+
<PROJECT_ROOT>/node_modules/react-native-gesture-handler/.*
34+
<PROJECT_ROOT>/node_modules/expo/.*
35+
<PROJECT_ROOT>/node_modules/react-navigation/.*
36+
<PROJECT_ROOT>/node_modules/xdl/.*
37+
<PROJECT_ROOT>/node_modules/reqwest/.*
38+
<PROJECT_ROOT>/node_modules/metro-bundler/.*
3939

4040
[include]
4141

@@ -49,6 +49,11 @@ emoji=true
4949

5050
module.system=haste
5151

52+
module.file_ext=.js
53+
module.file_ext=.jsx
54+
module.file_ext=.json
55+
module.file_ext=.ios.js
56+
5257
munge_underscores=true
5358

5459
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
@@ -59,12 +64,12 @@ suppress_type=$FlowFixMeProps
5964
suppress_type=$FlowFixMeState
6065
suppress_type=$FixMe
6166

62-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
63-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
67+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
68+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
6469
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
6570
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
6671

6772
unsafe.enable_getters_and_setters=true
6873

6974
[version]
70-
^0.53.0
75+
^0.56.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"expo": {
3-
"sdkVersion": "22.0.0"
3+
"sdkVersion": "23.0.0"
44
}
55
}

0 commit comments

Comments
 (0)