Skip to content

Commit 65d3858

Browse files
author
Chris Brody
authored
fix: loosen template React peer dependency (for React 17) (#440)
* fix: loosen template React peer dependency (for React 17) * update test snapshots
1 parent 23bdce5 commit 65d3858

File tree

31 files changed

+31
-31
lines changed

31 files changed

+31
-31
lines changed

templates/general.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ${objectClassName};
3535

3636
const peerDependencies =
3737
`{
38-
"react": "^16.8.1",
38+
"react": ">=16.8.1",
3939
"react-native": ">=0.60.0-rc.0 <1.0.x"
4040
}`;
4141

tests/integration/cli/create/view/__snapshots__/cli-create-with-view.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ RCT_EXPORT_MODULE()
686686
\\"licenseFilename\\": \\"LICENSE\\",
687687
\\"readmeFilename\\": \\"README.md\\",
688688
\\"peerDependencies\\": {
689-
\\"react\\": \\"^16.8.1\\",
689+
\\"react\\": \\">=16.8.1\\",
690690
\\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\"
691691
},
692692
\\"devDependencies\\": {

tests/integration/cli/create/with-defaults/__snapshots__/cli-create-with-defaults.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnu
682682
\\"licenseFilename\\": \\"LICENSE\\",
683683
\\"readmeFilename\\": \\"README.md\\",
684684
\\"peerDependencies\\": {
685-
\\"react\\": \\"^16.8.1\\",
685+
\\"react\\": \\">=16.8.1\\",
686686
\\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\"
687687
},
688688
\\"devDependencies\\": {

tests/with-injection/create/view/with-defaults/__snapshots__/create-view-with-defaults.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ content:
9090
\\"licenseFilename\\": \\"LICENSE\\",
9191
\\"readmeFilename\\": \\"README.md\\",
9292
\\"peerDependencies\\": {
93-
\\"react\\": \\"^16.8.1\\",
93+
\\"react\\": \\">=16.8.1\\",
9494
\\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\"
9595
},
9696
\\"devDependencies\\": {

tests/with-injection/create/view/with-example/with-defaults/__snapshots__/create-view-with-example-with-defaults.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ content:
9292
\\"licenseFilename\\": \\"LICENSE\\",
9393
\\"readmeFilename\\": \\"README.md\\",
9494
\\"peerDependencies\\": {
95-
\\"react\\": \\"^16.8.1\\",
95+
\\"react\\": \\">=16.8.1\\",
9696
\\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\"
9797
},
9898
\\"devDependencies\\": {

tests/with-injection/create/view/with-example/with-options/__snapshots__/create-view-with-example-with-options.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ content:
9292
\\"licenseFilename\\": \\"LICENSE\\",
9393
\\"readmeFilename\\": \\"README.md\\",
9494
\\"peerDependencies\\": {
95-
\\"react\\": \\"^16.8.1\\",
95+
\\"react\\": \\">=16.8.1\\",
9696
\\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\"
9797
},
9898
\\"devDependencies\\": {

tests/with-injection/create/view/with-options/for-android/__snapshots__/lib-view-android-config-options.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ content:
7878
\\"licenseFilename\\": \\"LICENSE\\",
7979
\\"readmeFilename\\": \\"README.md\\",
8080
\\"peerDependencies\\": {
81-
\\"react\\": \\"^16.8.1\\",
81+
\\"react\\": \\">=16.8.1\\",
8282
\\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\"
8383
},
8484
\\"devDependencies\\": {

tests/with-injection/create/view/with-options/for-ios/__snapshots__/create-view-with-options-for-ios.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ content:
7979
\\"licenseFilename\\": \\"LICENSE\\",
8080
\\"readmeFilename\\": \\"README.md\\",
8181
\\"peerDependencies\\": {
82-
\\"react\\": \\"^16.8.1\\",
82+
\\"react\\": \\">=16.8.1\\",
8383
\\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\"
8484
},
8585
\\"devDependencies\\": {

tests/with-injection/create/with-defaults/__snapshots__/create-with-defaults.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ content:
9090
\\"licenseFilename\\": \\"LICENSE\\",
9191
\\"readmeFilename\\": \\"README.md\\",
9292
\\"peerDependencies\\": {
93-
\\"react\\": \\"^16.8.1\\",
93+
\\"react\\": \\">=16.8.1\\",
9494
\\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\"
9595
},
9696
\\"devDependencies\\": {

tests/with-injection/create/with-defaults/bogus-platforms/bogus-name/__snapshots__/bogus-platforms-name.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ content:
6767
\\"licenseFilename\\": \\"LICENSE\\",
6868
\\"readmeFilename\\": \\"README.md\\",
6969
\\"peerDependencies\\": {
70-
\\"react\\": \\"^16.8.1\\",
70+
\\"react\\": \\">=16.8.1\\",
7171
\\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\"
7272
},
7373
\\"devDependencies\\": {

0 commit comments

Comments
 (0)