英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论