Skip to content

Commit c2cd09f

Browse files
authoredJul 13, 2022
chore: update react-native example (#13016)
1 parent ca61556 commit c2cd09f

File tree

4 files changed

+367
-525
lines changed

4 files changed

+367
-525
lines changed
 

‎constraints.pro

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ gen_enforced_dependency(WorkspaceCwd, DependencyIdent, DependencyRange2, Depende
2525
\+ member(DependencyIdent, [
2626
% Allow enzyme example workspace use a older version react and react-dom, because enzyme don't support react 17
2727
'react', 'react-dom',
28+
% Only RN should be bumped to react 18
29+
'react-test-renderer',
2830
% @types/node in the root need to stay on ~12.12.0
2931
'@types/node',
3032
% upgrading the entire repository is a breaking change

‎examples/react-native/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
"test": "jest"
88
},
99
"dependencies": {
10-
"react": "17.0.2",
11-
"react-native": "0.68.2"
10+
"react": "18.0.0",
11+
"react-native": "0.69.1"
1212
},
1313
"devDependencies": {
1414
"@babel/core": "^7.11.6",
1515
"@babel/preset-env": "^7.1.0",
1616
"babel-jest": "workspace:*",
1717
"jest": "workspace:*",
18-
"metro-react-native-babel-preset": "0.67.0",
19-
"react-test-renderer": "17.0.2"
18+
"metro-react-native-babel-preset": "0.70.3",
19+
"react-test-renderer": "18.0.0"
2020
}
2121
}

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@
175175
"enzyme/cheerio": "=1.0.0-rc.3",
176176
"jest": "workspace:*",
177177
"jest-environment-node": "workspace:*",
178-
"react-native@0.68.2": "patch:react-native@npm:0.68.2#.yarn/patches/react-native-npm-0.68.1-8830b7be0d.patch"
178+
"react-native@0.69.1": "patch:react-native@npm:0.69.1#.yarn/patches/react-native-npm-0.68.1-8830b7be0d.patch",
179+
"react-native/react-shallow-renderer": "^16.15.0"
179180
},
180181
"packageManager": "yarn@3.2.1"
181182
}

‎yarn.lock

+359-520
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.