React Native命令为什么不起作用并显示错误?

huangapple go评论50阅读模式
英文:

Why react native command not working and show error?

问题

在React Native中,当我想要使用React Native矢量图标时,但出现以下错误。
$ react-native link

成功
英文:

in react native , when I want to use react native vector icons . but showing this error.


 $ react-native link
error: unknown command 'link'

`$ react-native link

success

`

答案1

得分: 2

在新版本的React-Native(>0.69),链接命令已删除。您可以使用react-native-assets来替代链接命令。

您可以按照此链接中的说明,在您的项目中设置react-native-vector-icons:
react-native-vector-icons-fonts-react-native-app-ui

英文:

In newer versions of React-Naitve (>0.69) link command is deleted. You can use react-native-assets instead of link command.

You can follow the instructions in this link, to setup react-native-vector-icons in your project:
react-native-vector-icons-fonts-react-native-app-ui

huangapple
  • 本文由 发表于 2023年5月10日 16:10:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76216232.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定