错误:安装 react-native-elements 后无法识别字体系列 Material Design 图标? [英] Error: Unrecognized font family Material Design icons after installing react-native-elements?
本文介绍了错误:安装 react-native-elements 后无法识别字体系列 Material Design 图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是 react-native 的新手.我使用 react-native-cli 创建了一个新项目.我正在使用 react-native-element 作为 React Native 的 UI 组件库.所以我运行了以下命令
I am a Newbie in react-native. I created a new project using react-native-cli. I am Using react-native-elements As A UI component library for React Native. So I ran following commands
**npm i react-native-elements --save**
在此之后我运行了我的模拟器命令,
After this i ran my simulator command,
react-native run-ios
不知道如何解决这个错误.
not sure how to resolve this error.
推荐答案
尝试运行以下命令 -
Try running following command -
react-native link react-native-vector-icons
如果这不能解决您的问题,那么一旦使用,
if this does not solve your problem then once rebuild your app using,
react-native run-ios
有时 CLI 无法自动获取更新.
sometimes CLI is not able to get the updates automatically.
这篇关于错误:安装 react-native-elements 后无法识别字体系列 Material Design 图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文