https://github.com/paradite/rn-patch-package
https://github.com/paradite/rn-patch-package
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/paradite/rn-patch-package
- Owner: paradite
- Created: 2023-09-03T12:33:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-03T12:47:03.000Z (over 2 years ago)
- Last Synced: 2025-02-06T11:33:55.030Z (11 months ago)
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rn-patch-package
Collection of React Native patches using [patch-package](https://github.com/ds300/patch-package)
## Patches
Gradle 8 related:
- expo-ads-admob
- expo-firebase-analytics
- expo-firebase-core
- expo-firebase-core/node_modules/expo-constants
Other:
- react-native (EventEmitter bug fix)
## How to use
Simply copy over patch files into `patches` folder and run `yarn patch-package` (or make `patch-package` a npm script and run it) to apply the patches. Check in the patches folder and the `package.json` file to source control.
You will also need to setup `postinstall` script in `package.json` to run `patch-package` after `yarn install` or `npm install` (for yarn v1).
```json
{
"scripts": {
"postinstall": "patch-package"
}
}
```
Refer to [patch-package](https://github.com/ds300/patch-package) for more documentation.