世博分离项目自定义字体在Android上不起作用

时间:2019-02-24 09:54:09

标签: android react-native expo

我想将我的Expo项目弹出到Expokit,因为我想慢慢切换回react-native

我也尝试使用添加自定义字体

react-native link

该字体在iO上工作正常,但在Android上无法正常工作

字体已复制到main/assets/fonts enter image description here

但我仍然遇到此错误

enter image description here

1 个答案:

答案 0 :(得分:0)

考虑将此行添加到package.json中。

"rnpm": {
"assets": [
"./assets/fonts/"
]

}

然后运行:

react-native link 
相关问题