@expo/vector-icon is not loading Android Device

124 Views Asked by At

I Have created the expo project with bare minimum for the project. I am using expo vector icons are specified in the document. So it is working well in the Browser and Android Emulator, this is fine. After that i have published the project to expo account by using command : "expo publish" and it has published successfully.So when i started scanning the resulted QR code into the mobile. it is not displaying the icons. Displaying some encoded string. Syntax is have used :

import { Ionicons } from '@expo/vector-icons';

<Ionicons name="add"  size={24} color="black" />

Package.json

{
  "main": "index.js",
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "web": "expo start --web",
    "start": "react-native start",
    "test": "jest"
  },
  "dependencies": {
    "@expo/vector-icons": "^12.0.4",
    "@react-native-community/masked-view": "0.1.10",
    "@react-navigation/material-bottom-tabs": "^5.3.14",
    "@react-navigation/native": "^5.9.3",
    "@react-navigation/stack": "^5.14.3",
    "expo": "~40.0.0",
    "expo-font": "~8.4.0",
    "expo-linear-gradient": "~8.4.0",
    "expo-splash-screen": "~0.8.0",
    "expo-status-bar": "~1.0.3",
    "expo-updates": "~0.4.0",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "~0.63.4",
    "react-native-gesture-handler": "~1.8.0",
    "react-native-paper": "^4.7.2",
    "react-native-reanimated": "~1.13.0",
    "react-native-safe-area-context": "3.1.9",
    "react-native-screens": "~2.15.2",
    "react-native-unimodules": "~0.12.0",
    "react-native-web": "~0.13.12",
    "react-redux": "^7.2.3",
    "redux": "^4.0.5",
    "redux-thunk": "^2.3.0"
  },
  "devDependencies": {
    "@babel/core": "^7.9.0",
    "babel-jest": "~25.2.6",
    "babel-plugin-module-resolver": "^4.1.0",
    "jest": "~25.2.6",
    "react-test-renderer": "~16.13.1"
  },
  "jest": {
    "preset": "react-native"
  },
  "private": true
}

Please help me out if has any issue in the code. Thanks in advance.

0

There are 0 best solutions below