【发布时间】:2022-12-19 14:16:33
【问题描述】:
我正在尝试在我的 react-native-project 中添加自定义字体。我添加到这段代码
module.exports = {
project: {
ios: {},
android: {}
},
assets: ['./assets/fonts/']
}
进入 react-native.config.js 和
npx react-native-asset
这件事发生
'react-native-asset' is not recognized as an internal or external command,
operable program or batch file.
【问题讨论】:
-
你已经安装了
react-native-asset包吗? -
我不认为这与问题有任何关系。
标签: reactjs react-native npm