Unrecognized Font Family on React Native

前端 未结 5 1292
春和景丽
春和景丽 2021-02-11 01:57

I\'m running into a peculiar error using React Native. Inside my button.js I am doing

import Icon from \"react-native-vector-icons/MaterialIcons\";         


        
5条回答
  •  时光说笑
    2021-02-11 02:15

    The same issue was fixed after triggering loadFont() method

    import Icon from 'react-native-vector-icons/FontAwesome';
    
    Icon.loadFont();
    

提交回复
热议问题