- Follow the instructions to setup/use patch-package
- Copy the included
@expo+vector-icons+12.0.5.patch
file into yourpatches
directory. - Since
patch-package
won't work for binary files, you'll need to copy the Fonts directory fromreact-native-vector-icons
into yourpatches
directory (or wherever else is convenient). If you only need a specific Font and don't intend to use the other fonts, you can reduce the Fonts directory down to only the fonts you require if you like. - To copy over the Fonts directory when patching, make sure to include the following into your
postinstall
script inpackage.json
:
{
"scripts": {
"postinstall": "patch-package && cp -r patches/Fonts node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons",