这是一个新鲜的React Native
应用程序使用React Native Paper
。我按照以下说明进行操作https://callstack.github.io/react-native-paper/getting-started.html https://callstack.github.io/react-native-paper/getting-started.html并安装了react-native-paper
and react-native-vector-icons
.
For some reason, none of the icons are showing in the app -- see below:
例如,我有一个Searchbar
在此屏幕的顶部包含以下代码。据我所知,我什至不必在那里指定图标。它应该自动显示放大镜,但没有显示图标。
<Searchbar placeholder="New to do item..." />
知道为什么以及如何解决它吗?
停止您的应用程序。然后进入项目目录>打开cmd>运行npx react-native link react-native-vector-icons
cmd会显示链接成功
现在再次运行您的应用程序
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)