react-native-vector-icons第三方库



  • 使用react-native-vector-icons时报Unrecognized font family ‘Ionicons’错误,我也将字体导入到iOS工程当中去了,求大神帮忙解疑答惑!谢谢!0_1474896552511_error.png



  • 已经解决,在github上查看使用方法,还需要在info.plist中添加

    <key>UIAppFonts</key>
      <array>
        <string>Entypo.ttf</string>
        <string>EvilIcons.ttf</string>
        <string>FontAwesome.ttf</string>
        <string>Foundation.ttf</string>
        <string>Ionicons.ttf</string>
        <string>MaterialIcons.ttf</string>
        <string>Octicons.ttf</string>
        <string>Zocial.ttf</string>
    

    </array>


登录后回复