react native 0.66.0
@ant-design/react-native 4.2.0
整合之后会报:Unrecognized font family ‘antoutline’
方法一:
- 进入 node_modules/@ant-design/icons-react-native/fonts 目录, 复制
antfill.ttf
和antoutline.ttf
到Xcode Project -> Resources folder
. - 打开Xcode,将两个文件添加到依赖中.
- 将两个文件 添加到
info.plist
->Fonts provided by application
配置中。
方法二:
运行 react-native link @ant-design/icons-react-native