Skip to content

Commit

Permalink
chore: update react-native example (#13016)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jul 13, 2022
1 parent ca61556 commit c2cd09f
Show file tree
Hide file tree
Showing 4 changed files with 367 additions and 525 deletions.
2 changes: 2 additions & 0 deletions constraints.pro
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
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
Expand Up @@ -175,7 +175,8 @@
"enzyme/cheerio": "=1.0.0-rc.3",
"jest": "workspace:*",
"jest-environment-node": "workspace:*",
"react-native@0.68.2": "patch:react-native@npm:0.68.2#.yarn/patches/react-native-npm-0.68.1-8830b7be0d.patch"
"react-native@0.69.1": "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": "yarn@3.2.1"
}

0 comments on commit c2cd09f

Please sign in to comment.