Unidentified font family ionizers

I followed the setup instructions in NativeBase Docs and ran rnpm link. I get this error: Unrecognized ionic font families

Xcode also checked, fonts are already in the build phase. What am I missing?

+8
source share
5 answers

Turning around on an existing answer and using the solution found in this github issue , follow these steps:

  • Close a running packer
  • Run react-native link react-native-vector-icons
  • Then run react-native start --reset-cache
  • Finally, run react-native run-iosto restart the simulator
+18
source

, rnpm link.

.

+3

RN 0. 60+ react-native link ...! (. )

Podfile:

pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

pod update ( pod install).

, Info.plist:

<key>UIAppFonts</key>
<array>
  <string>AntDesign.ttf</string>
  <string>Entypo.ttf</string>
  <string>EvilIcons.ttf</string>
  <string>Feather.ttf</string>
  <string>FontAwesome.ttf</string>
  <string>FontAwesome5_Brands.ttf</string>
  <string>FontAwesome5_Regular.ttf</string>
  <string>FontAwesome5_Solid.ttf</string>
  <string>Foundation.ttf</string>
  <string>Ionicons.ttf</string>
  <string>MaterialIcons.ttf</string>
  <string>MaterialCommunityIcons.ttf</string>
  <string>SimpleLineIcons.ttf</string>
  <string>Octicons.ttf</string>
  <string>Zocial.ttf</string>
</array>

( https://github.com/oblador/react-native-vector-icons#option-with-cocoapods)

:

"react": "16.9.0",
"react-native": "0.61.1",
"native-base": "2.13.8" (react-native-vector-icons@6.6.0),
+2

mac.solution:

  • .

  • , , .. React-native link react-native-vector-icons

  • ., React-native run-ios

0

If your iOS project uses CocoaPods (contains a Podfile) and the linked library contains a podspec file, then a native link will link the library using the Podfile.

Add a comment below at the end of your subfile.

# Add new pods below this line

Then run the "response to the native link [package_name]"

This works for me.

0
source

Source: https://habr.com/ru/post/1649856/


All Articles