【问题标题】:Incorrect icons showing in android using react-native-elements使用 react-native-elements 在 android 中显示不正确的图标
【发布时间】:2020-09-15 03:13:54
【问题描述】:

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

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

安卓

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 react-native react-native-elements


    【解决方案1】:

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

    杀死节点。

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

    重新运行您的应用程序。

    【讨论】:

      猜你喜欢
      • 2018-12-02
      • 1970-01-01
      • 2022-07-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-12
      相关资源
      最近更新 更多