expo / vector-icons

https://icons.expo.fyi
MIT License
667 stars 115 forks source link

Icons do not show in APK when building using Expo EAS #232

Open DianaLaa opened 2 years ago

DianaLaa commented 2 years ago

I've upgraded from SDK 44 to SDK 46. On SDK 44 my APK was fine.

After upgrading to SDK 46, when testing the app using Expo Go (expo start) all icons show correctly. However, after building with Expo EAS to an APK, no icons show. We use both <MaterialCommunityIcons> and <Ionicons> but none show after building the APK.

I don't know if it is related, but I had to exclude expo-file-system to get the EAS build to run. (https://github.com/expo/expo/issues/15632#issuecomment-998223536) I didn't see any other people reporting that this change would break icons, so I think it's not related, but am including it here for completeness.

What would


    "expo": {
        "autolinking": {
            "exclude": [
                "expo-file-system"
            ]
        }
    },
    "dependencies": {
        "@expo/metro-config": "^0.1.40",
        "@expo/ngrok": "^4.1.0",
        "@expo/vector-icons": "^13.0.0",
        "@react-native-async-storage/async-storage": "~1.17.3",
        "@react-native-community/datetimepicker": "6.2.0",
        "@react-native-community/masked-view": "0.1.10",
        "@react-native-community/netinfo": "9.3.0",
        "@react-native-picker/picker": "2.4.2",
        "@redux-offline/redux-offline": "2.6.0-expo.0",
        "babel-plugin-inline-dotenv": "^1.3.3",
        "dotenv": "^8.0.0",
        "expo": "^46.0.0",
        "expo-app-loading": "~2.1.0",
        "expo-asset": "~8.6.1",
        "expo-constants": "~13.2.4",
        "expo-dev-client": "~1.3.1",
        "expo-font": "~10.2.0",
        "expo-linking": "~3.2.2",
        "expo-splash-screen": "~0.16.2",
        "expo-status-bar": "~1.4.0",
        "expo-updates": "~0.14.6",
        "expo-web-browser": "~11.0.0",
        "global": "^4.4.0",
        "google-libphonenumber": "^3.2.24",
        "moment": "^2.27.0",
        "react": "18.0.0",
        "react-native": "0.69.6",
        "react-native-app-link": "^1.0.0",
        "react-native-calendars": "^1.1264.0",
        "react-native-gesture-handler": "~2.5.0",
        "react-native-masked-text": "^1.12.4",
        "react-native-paper": "^4.12.5",
        "react-native-phone-number-input": "^2.1.0",
        "react-native-picker-select": "^8.0.4",
        "react-native-pin-view": "3.0.2",
        "react-native-platform-touchable": "^1.1.1",
        "react-native-reanimated": "~2.9.1",
        "react-native-screens": "~3.15.0",
        "react-native-super-grid": "^4.0.3",
        "react-native-svg": "12.3.0",
        "react-native-swiper": "^1.6.0",
        "react-native-webview": "11.23.0",
        "react-navigation": "^4.4.0",
        "react-navigation-material-bottom-tabs": "^2.1.5",
        "react-navigation-stack": "^1.7.3",
        "react-redux": "^7.0.0",
        "redux": "^4.0.4",
        "redux-saga": "^1.0.5",
        "uuid": "3.3.2"
    },
    "devDependencies": {
        "@babel/eslint-parser": "^7.17.0",
        "@types/google-libphonenumber": "^7.4.21",
        "@types/jest": "^29.2.0",
        "@types/node": "^18.11.3",
        "@types/react-native": "~0.69.6",
        "@types/react-native-app-link": "^1.0.0",
        "@types/react-native-calendars": "^1.1264.3",
        "@types/react-native-platform-touchable": "^1.1.2",
        "@types/uuid": "^3.0.0",
        "@typescript-eslint/eslint-plugin": "^4.31.1",
        "@typescript-eslint/parser": "^4.31.1",
        "babel-jest": "^24.9.0",
        "babel-preset-expo": "~9.2.0",
        "eslint": "^7.3.1",
        "eslint-config-standard": "^14.1.0",
        "eslint-plugin-babel": "^5.3.0",
        "eslint-plugin-import": "^2.19.1",
        "eslint-plugin-jest": "^24.1.3",
        "eslint-plugin-jsx-a11y": "^6.2.3",
        "eslint-plugin-node": "^10.0.0",
        "eslint-plugin-optimize-regex": "^1.2.0",
        "eslint-plugin-promise": "^4.2.1",
        "eslint-plugin-react": "^7.20.0",
        "eslint-plugin-react-hooks": "^4.2.0",
        "eslint-plugin-standard": "^4.0.1",
        "eslint-plugin-testing-library": "^4.12.2",
        "expo-cli": "^6.0.6",
        "jest": "^26.6.3",
        "react-test-renderer": "^16.9.0",
        "typescript": "^4.6.3",
        "uuid-validate": "0.0.3"
    },
    "packageManager": "yarn@3.2.0"
``
GITupeer commented 1 year ago

i've the same problem

DianaLaa commented 1 year ago

Problem also occurs on SDK 47

Duclmict commented 1 year ago

I downgrade SDK 46 to SDK 44 and use Expo EAS build but no icons show.

vvsreerag commented 1 year ago

im having the same issue have anyone sorted it out?

bc160201983 commented 7 months ago

remove "expo-file-system" from package.json autolinking

"expo": { "autolinking": { "exclude": [ "expo-file-system" ] } },