Skip to content

Commit

Permalink
upgrade react-native packages to latest (#10454)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbitmyths authored Feb 2, 2022
1 parent ad9d2e2 commit 6076a26
Show file tree
Hide file tree
Showing 5 changed files with 2,754 additions and 4,643 deletions.
6 changes: 3 additions & 3 deletions js/react_native/example/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const path = require('path');
const blacklist = require('metro-config/src/defaults/blacklist');
const exclusionList = require('metro-config/src/defaults/exclusionList');
const escape = require('escape-string-regexp');
const pak = require('../package.json');

Expand All @@ -16,9 +16,9 @@ module.exports = {
watchFolders: [root],

// We need to make sure that only one version is loaded for peerDependencies
// So we blacklist them at the root, and alias them to the versions in example's node_modules
// So we exclusionList them at the root, and alias them to the versions in example's node_modules
resolver: {
blacklistRE: blacklist(
exclusionListRE: exclusionList(
modules.map(
(m) =>
new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`)
Expand Down
6 changes: 3 additions & 3 deletions js/react_native/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"start": "react-native start"
},
"dependencies": {
"react": "16.13.1",
"react-native": "0.63.4"
"react": "^17.0.2",
"react-native": "^0.67.2"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/runtime": "^7.12.5",
"babel-plugin-module-resolver": "^4.0.0",
"metro-react-native-babel-preset": "^0.64.0"
"metro-react-native-babel-preset": "^0.67.0"
}
}
Loading

0 comments on commit 6076a26

Please sign in to comment.