【发布时间】:2018-11-05 16:27:33
【问题描述】:
我正在为我的项目使用谷歌字体 (https://fonts.google.com/specimen/Noto+Sans+KR)。
我已按照以下文档链接字体。 https://medium.com/@danielskripnik/how-to-add-and-remove-custom-fonts-in-react-native-b2830084b0e4
组件的样式是:
{fontFamily:'NotoSansKR-Regular'}
它在 IOS 中工作,但在 android 中不工作。以前的 RN 版本运行良好。
【问题讨论】:
-
也许这会有所帮助:medium.com/react-native-training/….
-
试过都不起作用@HedeH
-
当你说“不工作”时,你是什么意思?
-
@Kai 字体未在 android 中加载。 project/android/app/src/main/assets/fonts 文件夹在那里
标签: android reactjs react-native fonts