Skip to content

Commit

Permalink
Optimize dependency list (#3216)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
latekvo authored Nov 21, 2024
1 parent 6fc506d commit 3daca2d
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 1,950 deletions.
2 changes: 1 addition & 1 deletion FabricExample/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5630,7 +5630,7 @@ prompts@^2.0.1, prompts@^2.4.2:
kleur "^3.0.3"
sisteransi "^1.0.5"

prop-types@^15.7.2, prop-types@^15.8.1:
prop-types@^15.8.1:
version "15.8.1"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
Expand Down
2 changes: 1 addition & 1 deletion MacOSExample/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6273,7 +6273,7 @@ prompts@^2.0.1, prompts@^2.4.2:
kleur "^3.0.3"
sisteransi "^1.0.5"

prop-types@^15.7.2, prop-types@^15.8.1:
prop-types@^15.8.1:
version "15.8.1"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
Expand Down
2 changes: 1 addition & 1 deletion example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7284,7 +7284,7 @@ prompts@^2.0.1, prompts@^2.3.2, prompts@^2.4.2:
kleur "^3.0.3"
sisteransi "^1.0.5"

prop-types@^15.7.2, prop-types@^15.8.1:
prop-types@^15.8.1:
version "15.8.1"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
Expand Down
14 changes: 3 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,44 +66,36 @@
"dependencies": {
"@egjs/hammerjs": "^2.0.17",
"hoist-non-react-statics": "^3.3.0",
"invariant": "^2.2.4",
"prop-types": "^15.7.2"
"invariant": "^2.2.4"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/preset-env": "^7.12.11",
"@babel/preset-typescript": "^7.12.7",
"@babel/runtime": "^7.12.5",
"@react-native/babel-preset": "^0.74.85",
"@testing-library/jest-native": "^5.4.3",
"@testing-library/react-native": "^12.5.1",
"@types/hammerjs": "^2.0.38",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/invariant": "^2.2.37",
"@types/jest": "^27.0.3",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"babel-jest": "^26.6.3",
"babel-plugin-module-resolver": "^5.0.2",
"clang-format": "^1.8.0",
"eslint": "^7.32.0",
"eslint-config-satya164": "^3.1.8",
"eslint-import-resolver-babel-module": "^5.2.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^26.0.0",
"expo": "^35.0.1",
"husky": "^8.0.1",
"jest": "^28.1.0",
"lint-staged": "^12.3.2",
"madge": "^6.1.0",
"prettier": "2.7.1",
"react": "18.2.0",
"react-dom": "^16.12.0",
"react-native": "0.74.3",
"react-native-builder-bob": "^0.17.1",
"react-native-reanimated": "^3.12.0",
"react-native-web": "^0.11.7",
"react-test-renderer": "18.2.0",
"release-it": "^13.6.5",
"typescript": "5.0.4"
Expand Down
Loading

0 comments on commit 3daca2d

Please sign in to comment.