内容简介:React Native中 在使用百度和Google都没找到答案,后来去
React Native中 在使用 List 和 Radio 组件时,报了这个醒目的错误:Unrecognized font family 'antoutline'
百度和Google都没找到答案,后来去 antd rn 的官方github下的Issues下才找到解决方案。
方法总结如下:
方法一:
- 进入 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 应该可以正常的解决这个问题,如果不行你应该查看为什么这个不起作用。
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- 【每日笔记】【Go学习笔记】2019-01-04 Codis笔记
- 【每日笔记】【Go学习笔记】2019-01-02 Codis笔记
- 【每日笔记】【Go学习笔记】2019-01-07 Codis笔记
- vue笔记3,计算笔记
- Mysql Java 驱动代码阅读笔记及 JDBC 规范笔记
- 【每日笔记】【Go学习笔记】2019-01-16 go网络编程
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Chinese Authoritarianism in the Information Age
Routledge / 2018-2-13 / GBP 115.00
This book examines information and public opinion control by the authoritarian state in response to popular access to information and upgraded political communication channels among the citizens in co......一起来看看 《Chinese Authoritarianism in the Information Age》 这本书的介绍吧!
UNIX 时间戳转换
UNIX 时间戳转换
RGB CMYK 转换工具
RGB CMYK 互转工具