Skip to content

Commit cc25f2b

Browse files
authored
Bump React and React Native to the latest version (#281)
1 parent 3afceee commit cc25f2b

File tree

3 files changed

+855
-1054
lines changed

3 files changed

+855
-1054
lines changed

detox/rn-0.64/metro.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,17 @@
66
*/
77

88
const path = require('path');
9-
const blacklist = require('metro-config/src/defaults/blacklist');
109

1110
const reactNativeLib = path.resolve(__dirname, '../..');
1211

1312
module.exports = {
1413
watchFolders: [reactNativeLib],
1514
resolver: {
16-
blacklistRE: blacklist([
15+
blockList: [
1716
new RegExp(`${reactNativeLib}/node_modules/react-native/.*`),
1817
new RegExp(`${reactNativeLib}/detox\/((?!rn-0\.64).).*`),
1918
new RegExp(path.resolve(__dirname, 'ios/.*')),
20-
]),
19+
],
2120
extraNodeModules: {
2221
'react-native': path.resolve(__dirname, 'node_modules/react-native'),
2322
},

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"ora": "^5.3.0",
4545
"prepend-file": "^1.3.1",
4646
"prettier": "^2.0.5",
47-
"react": "16.13.1",
48-
"react-native": "0.63.4",
47+
"react": "17.0.2",
48+
"react-native": "0.64.0",
4949
"rmfr": "^2.0.0",
5050
"source-map-explorer": "^2.4.2",
5151
"tmp": "^0.2.1",

0 commit comments

Comments
 (0)