react-native-vector-icons icon indicating copy to clipboard operation
react-native-vector-icons copied to clipboard

Exclude ttf paths changes to xcodeproj file

Open RuudBurger opened this issue 6 years ago • 2 comments

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 screenshot 2019-01-12 at 20 18 12

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.

RuudBurger avatar Jan 12 '19 19:01 RuudBurger

I want to do the same, since I'm using a custom font with a fontello config.

LRNZ09 avatar Apr 30 '19 12:04 LRNZ09

You can create a patch in order to achieve this.

  1. Setup patch-package
  2. Remove fonts you don’t want from /node_modules/react-native-vector-icons/Fonts
  3. Run yarn patch-package react-native-vector-icons
  4. Clean & build

sergiulucaci avatar Nov 03 '21 15:11 sergiulucaci