Skip to content

Commit 452aec0

Browse files
committed
Update expo
1 parent c25eaae commit 452aec0

File tree

7 files changed

+9366
-9656
lines changed

7 files changed

+9366
-9656
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"root": true,
3-
"extends": "tienphaw"
3+
"extends": "react-app"
44
}

example/metro.config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const path = require('path')
2-
const blacklist = require('metro-config/src/defaults/blacklist')
2+
const exclusionList = require('metro-config/src/defaults/exclusionList');
33
const escape = require('escape-string-regexp')
4+
const { getDefaultConfig } = require('@expo/metro-config');
45
const pak = require('../package.json')
56

67
const root = path.resolve(__dirname, '..')
@@ -9,14 +10,18 @@ const modules = Object.keys({
910
...pak.peerDependencies,
1011
})
1112

13+
const defaultConfig = getDefaultConfig(__dirname);
14+
1215
module.exports = {
16+
...defaultConfig,
1317
projectRoot: __dirname,
1418
watchFolders: [root],
1519

1620
// We need to make sure that only one version is loaded for peerDependencies
1721
// So we blacklist them at the root, and alias them to the versions in example's node_modules
1822
resolver: {
19-
blacklistRE: blacklist(
23+
...defaultConfig.resolver,
24+
blacklistRE: exclusionList(
2025
modules.map(
2126
(m) =>
2227
new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`)
@@ -30,6 +35,7 @@ module.exports = {
3035
},
3136

3237
transformer: {
38+
...defaultConfig.transformer,
3339
getTransformOptions: async () => ({
3440
transform: {
3541
experimentalImportSupport: false,

example/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88
"eject": "expo eject"
99
},
1010
"dependencies": {
11-
"expo": "~40.0.0",
12-
"expo-linear-gradient": "~8.4.0",
13-
"expo-status-bar": "~1.0.3",
14-
"react": "16.13.1",
15-
"react-dom": "16.13.1",
16-
"react-native": "https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz",
17-
"react-native-web": "~0.13.12"
11+
"expo": "50",
12+
"expo-linear-gradient": "~12.7.2",
13+
"expo-status-bar": "~1.11.1",
14+
"react": "18.2.0",
15+
"react-dom": "18.2.0",
16+
"react-native": "0.73.4",
17+
"react-native-web": "~0.19.6"
1818
},
1919
"devDependencies": {
20-
"@babel/core": "~7.9.0",
21-
"@expo/webpack-config": "^0.12.68",
22-
"@types/react": "~16.9.35",
23-
"@types/react-dom": "~16.9.8",
20+
"@babel/core": "^7.20.0",
21+
"@expo/webpack-config": "^19.0.0",
22+
"@types/react": "~18.2.14",
23+
"@types/react-dom": "~18.0.10",
2424
"@types/react-native": "~0.63.2",
2525
"babel-plugin-module-resolver": "^4.1.0",
26-
"typescript": "~4.0.0"
26+
"typescript": "^5.1.3"
2727
},
2828
"private": true
2929
}

example/tsconfig.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@
33
"baseUrl": ".",
44
"allowSyntheticDefaultImports": true,
55
"jsx": "react-native",
6-
"lib": ["dom", "esnext"],
6+
"lib": [
7+
"dom",
8+
"esnext"
9+
],
710
"moduleResolution": "node",
811
"noEmit": true,
912
"skipLibCheck": true,
1013
"resolveJsonModule": true,
1114
"strict": true,
1215
"paths": {
13-
"react-native-easing-gradient": ["../src/index"]
16+
"react-native-easing-gradient": [
17+
"../src/index"
18+
]
1419
}
15-
}
20+
},
21+
"extends": "expo/tsconfig.base"
1622
}

0 commit comments

Comments
 (0)