Skip to content

Commit 3daca2d

Browse files
authored
Optimize dependency list (#3216)
## Description <!-- Description and motivation for this PR. Include 'Fixes #<number>' if this is fixing some issue. --> - adds reanimated as a peer dependency of gesture handler. - narrows down the `react-native` peer dependency version to the last supported one - removes unnecessary `expo` package - removes unnecessary `prop-types` package - removes unused `react-dom` library - removes multiple unused `@babel` packages - removes multiple unused testing packages` ## Test plan - open example app, see how everything works and no errors are thrown - [x] test common example (ios, web, android) - [x] test MacOS example - [x] test Fabric example (ios, android) - build package, use `rngh` from this `PR` in a fresh react native app - [x] test on web - [x] test on android - [x] test on iOS
1 parent 6fc506d commit 3daca2d

File tree

5 files changed

+126
-1950
lines changed

5 files changed

+126
-1950
lines changed

FabricExample/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5630,7 +5630,7 @@ prompts@^2.0.1, prompts@^2.4.2:
56305630
kleur "^3.0.3"
56315631
sisteransi "^1.0.5"
56325632

5633-
prop-types@^15.7.2, prop-types@^15.8.1:
5633+
prop-types@^15.8.1:
56345634
version "15.8.1"
56355635
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
56365636
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==

MacOSExample/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6273,7 +6273,7 @@ prompts@^2.0.1, prompts@^2.4.2:
62736273
kleur "^3.0.3"
62746274
sisteransi "^1.0.5"
62756275

6276-
prop-types@^15.7.2, prop-types@^15.8.1:
6276+
prop-types@^15.8.1:
62776277
version "15.8.1"
62786278
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
62796279
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==

example/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7284,7 +7284,7 @@ prompts@^2.0.1, prompts@^2.3.2, prompts@^2.4.2:
72847284
kleur "^3.0.3"
72857285
sisteransi "^1.0.5"
72867286

7287-
prop-types@^15.7.2, prop-types@^15.8.1:
7287+
prop-types@^15.8.1:
72887288
version "15.8.1"
72897289
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
72907290
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==

package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,44 +66,36 @@
6666
"dependencies": {
6767
"@egjs/hammerjs": "^2.0.17",
6868
"hoist-non-react-statics": "^3.3.0",
69-
"invariant": "^2.2.4",
70-
"prop-types": "^15.7.2"
69+
"invariant": "^2.2.4"
7170
},
7271
"devDependencies": {
7372
"@babel/core": "^7.12.9",
74-
"@babel/plugin-proposal-class-properties": "^7.12.1",
7573
"@babel/preset-env": "^7.12.11",
7674
"@babel/preset-typescript": "^7.12.7",
77-
"@babel/runtime": "^7.12.5",
7875
"@react-native/babel-preset": "^0.74.85",
79-
"@testing-library/jest-native": "^5.4.3",
8076
"@testing-library/react-native": "^12.5.1",
81-
"@types/hammerjs": "^2.0.38",
8277
"@types/hoist-non-react-statics": "^3.3.1",
78+
"@types/invariant": "^2.2.37",
8379
"@types/jest": "^27.0.3",
8480
"@types/react": "^18.2.6",
8581
"@types/react-test-renderer": "^17.0.0",
8682
"@typescript-eslint/eslint-plugin": "^4.33.0",
8783
"@typescript-eslint/parser": "^4.33.0",
88-
"babel-jest": "^26.6.3",
84+
"babel-plugin-module-resolver": "^5.0.2",
8985
"clang-format": "^1.8.0",
9086
"eslint": "^7.32.0",
9187
"eslint-config-satya164": "^3.1.8",
9288
"eslint-import-resolver-babel-module": "^5.2.0",
93-
"eslint-plugin-import": "^2.22.1",
9489
"eslint-plugin-jest": "^26.0.0",
95-
"expo": "^35.0.1",
9690
"husky": "^8.0.1",
9791
"jest": "^28.1.0",
9892
"lint-staged": "^12.3.2",
9993
"madge": "^6.1.0",
10094
"prettier": "2.7.1",
10195
"react": "18.2.0",
102-
"react-dom": "^16.12.0",
10396
"react-native": "0.74.3",
10497
"react-native-builder-bob": "^0.17.1",
10598
"react-native-reanimated": "^3.12.0",
106-
"react-native-web": "^0.11.7",
10799
"react-test-renderer": "18.2.0",
108100
"release-it": "^13.6.5",
109101
"typescript": "5.0.4"

0 commit comments

Comments
 (0)