
"dependencies": {
"@remobile/react-native-splashscreen": "^1.0.3",
"alt": "^0.18.4",
"native-base": "^0.3.1",
"react": "^0.14.8",
"react-native": "^0.25.1",
"react-native-action-button": "^1.1.5",
"react-native-android-statusbar": "^0.1.2",
"react-native-icons": "^0.7.1",
"react-native-material-design": "https://github.com/react-native-material-design/react-native-material-design-styles.git",
"react-native-material-design-styles": "^0.2.6",
"react-native-navigation-bar": "^0.1.10",
"react-native-scrollable-tab-view": "^0.4.3",
"react-native-vector-icons": "^2.0.3"
},
I also tried the troubleshooting instructions below to no avail…
Even I faced the same issue. I tried restarting whole application and it worked. Try:
react-native run-androidThis will actually download some packages for react-native-vector-icons while building up, thennpm start.Somehow, someway, doing
react-native run-androidmade the icons work!? I had been running from Android Studio.I’m having this issue as well. RN 0.28, and
react-native-vector-icons2.0.1Workings on iOS. I ran
rnpm linkand get the following output but I still get the X like the OP. Screenshot below.When I upgraded native-base from 2.13.13 to 2.15.2, this issue happened, I follow below steps to resolve it:
android/app/build.gradlefile, add below content:node_modules/react-native-vector-icon/Fontstoandroid/app/src/main/assets/fonts/react-native run-androidIf the project is already open in android studio emulator and you imported the ICONS, then you will have to close the app and re-run
react-native run-androidfor your icons to be displayed.I am using FontAwesome, but Android still have [X] Icon. I import FontAwesome, { Icons } from ‘react-native-fontawesome’; and my code is <FontAwesome style={{fontSize: 20, color: “white”}}>{Icons.envelope}</FontAwesome>, but not working. Give me the way to troubleshoot 😦(
another way: if you ues android studio, do copy fonts to
android/app/assetsinstall ofandroid/app/src/main/assets. link postyou have to
rnpm link(that will link all dependencies, including this library)otherwise if you only want a particular one, you can
rnpm link <name>