1add this in '/app/build.gradle'
2
3apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
11-npm install --save react-native-vector-icons
22-Edit android/app/build.gradle : (add below code)
3 apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
43-Edit android/settings.gradle : (add below codes)
5 + include ':react-native-vector-icons'
6 + project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
74-Edit android/app/build.gradle : (add below code to dependencies)
8 dependencies {
9 ...
10 compile project(':react-native-vector-icons')
11}
125-import fontawesome to App.js :
13import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
1Following steps will help add vector icons to use in react-native cli
21-npm install --save react-native-vector-icons
32-Edit android/app/build.gradle : (add below code)
4 apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
53-Edit android/app/build.gradle : (add below code to dependencies)
6 dependencies {
7 ...
8 compile project(':react-native-vector-icons')
9}
104-run following command from project root directory
11npm install
125-start project again
136-run project in android with following command
14npx react-native run-android