Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update react-native example #13016

Merged
merged 4 commits into from
Jul 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions constraints.pro
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ gen_enforced_dependency(WorkspaceCwd, DependencyIdent, DependencyRange2, Depende
\+ member(DependencyIdent, [
% Allow enzyme example workspace use a older version react and react-dom, because enzyme don't support react 17
'react', 'react-dom',
% Only RN should be bumped to react 18
'react-test-renderer',
% @types/node in the root need to stay on ~12.12.0
'@types/node',
% upgrading the entire repository is a breaking change
Expand Down
8 changes: 4 additions & 4 deletions examples/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"test": "jest"
},
"dependencies": {
"react": "17.0.2",
"react-native": "0.68.2"
"react": "18.0.0",
"react-native": "0.69.1"
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.1.0",
"babel-jest": "workspace:*",
"jest": "workspace:*",
"metro-react-native-babel-preset": "0.67.0",
"react-test-renderer": "17.0.2"
"metro-react-native-babel-preset": "0.70.3",
"react-test-renderer": "18.0.0"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@
"enzyme/cheerio": "=1.0.0-rc.3",
"jest": "workspace:*",
"jest-environment-node": "workspace:*",
"[email protected]": "patch:react-native@npm:0.68.2#.yarn/patches/react-native-npm-0.68.1-8830b7be0d.patch"
"[email protected]": "patch:react-native@npm:0.69.1#.yarn/patches/react-native-npm-0.68.1-8830b7be0d.patch",
"react-native/react-shallow-renderer": "^16.15.0"
},
"packageManager": "[email protected]"
}
Loading