react native vector icons not showing
add this in '/app/build.gradle'
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
react native vector icons not showing
add this in '/app/build.gradle'
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
react native vector icons
1-npm install --save react-native-vector-icons
2-Edit android/app/build.gradle : (add below code)
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
3-Edit android/settings.gradle : (add below codes)
+ include ':react-native-vector-icons'
+ project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
4-Edit android/app/build.gradle : (add below code to dependencies)
dependencies {
...
compile project(':react-native-vector-icons')
}
5-import fontawesome to App.js :
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
install react-native-vector-icons/ionicons
npm i react-native-vector-icons
react native vector icon
import Icon from 'react-native-vector-icons/FontAwesome';
const myIcon = <Icon name="rocket" size={30} color="#900" />;
icon shwoing a box react native vector icons
In 'android/app/build.gradle' (not in android/build.gradle),
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
Then,
react-native link react-native-vector-icons
react-native run-android
react-native start
vector icons react native
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us