Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DianaLaa opened this issue Oct 31, 2022 · 5 comments
Open

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

DianaLaa opened this issue Oct 31, 2022 · 5 comments

Comments

@DianaLaa
Copy link

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.
(expo/expo#15632 (comment))
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
Copy link

i've the same problem

@DianaLaa
Copy link
Author

DianaLaa commented Dec 2, 2022

Problem also occurs on SDK 47

@Duclmict
Copy link

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

@vvsreerag
Copy link

im having the same issue have anyone sorted it out?

@bc160201983
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants