Closed ShaneMcNamara closed 3 years ago
Alright, I was able to get this to work.
It seems that changing my app.json
from:
"assetBundlePatterns": [
"assets/images/*",
"assets/fonts/*",
"assets/*"
],
to
"assetBundlePatterns": [
"**/*"
],
has solved the issue. However it does seem counter intuitive that assetBundlePatterns
would affect fonts imported in required modules. It would be valuable to document this behaviour somewhere
if it's not included in assetBundlePatterns then you will need to have an internet connection when you load the app in order for the icons to load
Hi @brentvatne,
My device definitely has internet connectivity as it is downloading the JS updated OTA and basically performing all other actions correctly (e.g. logging in). Is there something wrong with the following:
if (!this.state.isLoadingComplete) {
return (
<AppLoading
startAsync={this.initialLoad}
onError={handleLoadingError}
onFinish={() => {
this.setState({
isLoadingComplete:true,
});
}}
/>
);
}
initialLoad() {
await Promise.all([
...Ionicons.font,
...AntDesign.font,
...MaterialIcons.font,
...FontAwesome.font,
]);
}
Thanks.
Same issue.
I have
"assetBundlePatterns": [
"**/*"
],
in the app.json
and also tried to load fonts using
const [loaded, error] = Font.useFonts({
...MaterialIcons.font,
...MaterialCommunityIcons.font
});
read your logs when you run publish, see if you are publishing for the correct target.
you can also be explicit about it:
expo publish --target managed
- publishes for consumption in client or standalone apps built with expo build
expo publish --target bare
- publishes for bare react-native apps
closing this but if you continue having this issue then please post a new issue on https://github.com/expo/expo/issues and provide a reproducible example and more information
🐛 Bug Report
Summary of Issue
Icons load correctly in Expo Client on my physical device, as well as iOS simulator with
expo start --no-dev --minify
Environment - output of
expo diagnostics
& the platform(s) you're targetingiOS Simulator
iPhone
Expo Client
Reproducible Demo
I will add this in when (or if) my reproducible demo is approved to TestFlight.
I have this:
In my App.js, which is called as part of the
AppLoading.startAsync
Expected Behavior vs Actual Behavior