我想在我的react原生零食博览会应用程序中添加图标。
我试着使用这个:
import MaterialIcons from '@expo/vector-icons'当我在我的主要功能组件中添加组件<MaterialIcons name="delete" />时,它抛出了一个错误。
我正在使用名为snack expo的在线代码编辑器来构建我的应用程序。有没有人可以教我如何在零食博览会中使用矢量图标?
非常感谢您考虑我的请求。
发布于 2020-12-15 22:11:53
按如下方式导入MaterialIcons:
import { MaterialIcons } from '@expo/vector-icons';
// then use it
<MaterialIcons name="delete" />更多信息:MaterialIcons
https://stackoverflow.com/questions/65306458
复制相似问题