react-native-vector-icons
react-native-vector-icons copied to clipboard
Exclude ttf paths changes to xcodeproj file
Each time I do a pod install
the RNVectorIcons.podspec file includes all the ttf files that are includes in this package. Is there a way to exclude this? I only use react-native-vector-icons/lib/create-icon-set
with a custom .ttf file, so don't need the other font files.
I don't want these changes in the [CP] Copy Pods Resources
task
If I change s.resources = "Fonts/*.ttf"
to s.resources = ""
inside the RNVectorIcons.podspecs file I get the result I want, but I can't find away to do this programmatically before an install.
I want to do the same, since I'm using a custom font with a fontello config.
You can create a patch in order to achieve this.
- Setup patch-package
- Remove fonts you don’t want from
/node_modules/react-native-vector-icons/Fonts
- Run
yarn patch-package react-native-vector-icons
- Clean & build