@ant-design/react-native安装的坑

2019-04-03  本文已影响0人  sunny635533

ios会报这样的错,找不到相应的字体。

1、进入 node_modules/@ant-design/icons-react-native/fonts 目录, 复制 antfill.ttf 和 antoutline.ttf 到 Xcode Project -> Resources folder.

2、打开Xcode,将两个文件添加到依赖中

3、将两个文件 添加到 info.plist ->Fonts provided by application 配置中。

然后就可以了

上一篇 下一篇

猜你喜欢

热点阅读