Android 本机矢量图标中有Bug,图标为日语
我有一个本地应用程序 我有一个应用程序,但当我使用图标(react native vector图标)时,图标会以日语显示,例如: 我想使用的图标是“添加” 但当我在我的应用程序上显示如下图标时: 此应用程序的代码为: 代码:Android 本机矢量图标中有Bug,图标为日语,android,react-native,react-native-vector-icons,Android,React Native,React Native Vector Icons,我有一个本地应用程序 我有一个应用程序,但当我使用图标(react native vector图标)时,图标会以日语显示,例如: 我想使用的图标是“添加” 但当我在我的应用程序上显示如下图标时: 此应用程序的代码为: 代码: 遇到相同问题。请按照以下说明操作: 编辑android/app/build.gradle(非android/build.gradle)并添加以下内容: 应用于:“../../node_modules/react native vector icons/fonts.gr
遇到相同问题。请按照以下说明操作:
编辑android/app/build.gradle(非android/build.gradle)并添加以下内容:
应用于:“../../node_modules/react native vector icons/fonts.gradle” 重建
const App = () => {
return (
<>
<StatusBar barStyle="dark-content" />
<SafeAreaView>
<ScrollView
contentInsetAdjustmentBehavior="automatic"
style={styles.scrollView}>
<Header />
<View style={styles.body}>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Step One</Text>
<Text style={styles.sectionDescription}>
Edit <Text style={styles.highlight}>App.js</Text> to change this
screen and then come back to see your edits.
<Icon name="add" color="#000" size={22} />
</Text>
</View>
</ScrollView>
</SafeAreaView>
</>
);
};
});
Common
✓ Node.js
✓ yarn
Android
✖ JDK
- Version found: 1.8.0_265
- Version supported: >= 8
✖ Android Studio - Required for building and installing your app on Android
✓ Android SDK - Required for building and installing your app on Android
✓ ANDROID_HOME
Errors: 2
Warnings: 0
Usage
› Press f to try to fix issues.
› Press e to try to fix errors.
› Press w to try to fix warnings.
› Press Enter to exit.