React Native中 在使用List
和Radio
组件时,报了这个醒目的错误:Unrecognized font family ‘antoutline’
百度和Google都没找到答案,后来去antd rn
的官方github下的Issues下才找到解决方案。
方法总结如下:
方法一:
antfill.ttf
和 antoutline.ttf
到 Xcode Project -> Resources folder
.info.plist
->Fonts provided by application
配置中。方法二:
运行react-native link @ant-design/icons-react-native
应该可以正常的解决这个问题,如果不行你应该查看为什么这个不起作用。