使用react-native-elements在android中显示的图标不正确

问题描述

我正在使用react-native-elements在我的应用中显示图标。

但是图标在Android中显示不正确。

Android

Android

IOS

Ios

import { Icon } from 'react-native-elements';
<Icon
     style={styles.btnIcon}
     name="user"
     type="feather"
     iconStyle={styles.btnIconStyle}
     size={16}/>

package.json

"react-native-vector-icons": "^7.1.0","react-native-elements": "^2.3.2","react-native": "^0.63.2",

解决方法

如果您同时在两个平台上运行此应用程序,并且仅在android中出现问题,那么我认为您应该尝试清理npm缓存并重建应用程序。

杀死节点。

在终端中运行命令-npm cache clean --force

重新运行您的应用程序。