question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expo SDK 38: .png image not showing on testflight app (working fine in dev)

See original GitHub issue

🐛 Bug Report

.png images are not showing inside test-flight app(Works fine in dev mode)

Platform: ios

Reproducible Demo

Expo SDK version: 38

app.json includes "assetBundlePatterns": ["**/*"]

Styled components are used to display the image

const NameWrapper = styled.Image`
  height: 52px;
  width: 68px;
  margin-top: 5px;
`;

<NameWrapper source={require("../../../assets/WelcomeScreenLogo.png")} />

<WelcomeImage source={require("../../../assets/WelcomeScreen.png")}
  resizeMode="contain"
/>

None of these images is showing in test flight however working fine in dev mode.

Steps to Reproduce

Create expo-app using SDK 38 Add images using styled components Build and check your app on test-flight

Expected Behavior vs Actual Behavior

Expected: Images should show Actual: Images not showing

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
pouriaacommented, Nov 16, 2020

Upgrading to SDK 39 worked for me

expo upgrade
3reactions
mitkodkncommented, Aug 10, 2022

Still having the issue on SDK 45.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expo react-native: .png image not showing on testflight app ...
Updating to SDK 39 works fine.
Read more >
Expo React Native App Image Not Work Properly On ...
Bug Report.png images are not showing inside testflight appWorks fine in dev mode. Platform: ios Steps to Reproduce. Create expoapp using SDK 38...
Read more >
App is stuck on splash screen when opening it in Testflight
Hi, I am trying to run the app through(testflight). Upload went well but when I downloaded app on Testflight and opened it, it...
Read more >
Function on TestFlight not during review App issue
Hi Apple Developers. I need advice on how to fix this. Our new app was coded in React Native and build in Expo...
Read more >
Local image is not being rendered in release and TestFlight
Using react-native v0.63.4, and all the local image load fine in development mode. ``` <Image. source={require('../assets/images/xyz.png')}.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found