Please provide the following:
- SDK Version: 38.0.8
- Platforms(Android/iOS/web/all): Android/iOs
When I publish my expo project with either expo publish
or expo publish --release-channel staging
and then preview in the expo app, any icons do not show.
If I publish without a release channel using ‘Publish or republish your project to the internet’ from the Expo Dev Tools, with optimize assets turned on like this
then I do see the icons.
I am using FontAwesome and preloading the icon fonts to ensure they are uploaded as documented here - https://docs.expo.io/workflow/publishing/
import { FontAwesome } from '@expo/vector-icons';
function cacheFonts(fonts) {
return fonts.map(font => Font.loadAsync(font));
}
...
async _loadAssetsAsync() {
const imageAssets = cacheImages([
require('./assets/icon.png'),
]);
const fontAssets = cacheFonts([FontAwesome.font]);
await Promise.all([...imageAssets, ...fontAssets]);
}