Home > Enterprise >  Why createBottomTabNavigator icons not showing in my device?
Why createBottomTabNavigator icons not showing in my device?

Time:09-15

enter image description here

These createBottomTabNavigator icons not showing when i run in my device, but icons are showing when i run using web?

CodePudding user response:

It must be a problem with react-native-vector-icons Try this steps

Open android/app/build.gradle and add the following:

apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

You can follow the instructions to properly install the module on Android: react-native-vector-icons#install-android

CodePudding user response:

First, make sure you're saving the dependency in your project by doing:

npm install react-native-vector-icons --save. Including the --save is necessary, otherwise react-native link won't be able to locate the module.

  • Related