Open Immacio opened 1 year ago
You can apply patches to any library/dependency by using patch-package
Use yarn patch-package <package-name>
to apply patches, and yarn patch-package <package-name> --reverse
to revert patches.
Only apply your patch when you have finished making changes to the library/dependency under node_modules
.
You can find the diff for your patch under patches/<package-name>+<package-version>.patch
.
Simply copy and paste the above patch into your patches
folder and name it react-native-snap-carousel+3.9.1.patch
.
Thanks for the fix.
For others, to apply patches just run yarn patch-package
without the <package-name>
. Also remember to install deprecated-react-native-prop-types
.
And when we build with eas build, is this patch taken into consideration when the apk is built? Because I followed this and in development it works but when I build and when I launch my application it crashes.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
react-native-snap-carousel@3.9.1
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.