Unrecognized font family ionicons

后端 未结 9 1039
礼貌的吻别
礼貌的吻别 2021-02-04 02:19

I followed the setup instructions in the NativeBase Docs and ran rnpm link. I am getting this error: Unrecognized font family ionicons

also checked by Xco

9条回答
  •  -上瘾入骨i
    2021-02-04 02:37

    Editing PodFile and adding pod RNVectorIcons not necessary because auto-linking will work fine after adding react-native-vector-icons

    adding to PodFile will cause a warning after the next run with react-native run-ios:

    Warning: following modules are linked manually: - react-native-vector-icons (to unlink run: "react-native unlink react-native-vector-icons"
    

    Just add this line of codes to your info.plist that exist on ios/yourPorjectName/

    find UIAppFonts and add codes inside :

            AntDesign.ttf
            Entypo.ttf
            EvilIcons.ttf
            Feather.ttf
            FontAwesome.ttf
            FontAwesome5_Brands.ttf
            FontAwesome5_Regular.ttf
            FontAwesome5_Solid.ttf
            Foundation.ttf
            Ionicons.ttf
            MaterialIcons.ttf
            MaterialCommunityIcons.ttf
            SimpleLineIcons.ttf
            Octicons.ttf
            Zocial.ttf
    

    worked with:

    "react-native": "0.63.3",

    "react-native-vector-icons": "^7.1.0"

提交回复
热议问题