-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Images not showing in release build (code-push can't require
assets, need to explicitly use ms-appx/ms-appdata and lose require
benefits)
#7780
Comments
I have looked for this and what I found as a solution is to copy <Image
source={{uri: 'ms-appx:///Assets/logo.png'}}
/> |
We should make sure that the default project is configured in a way that the normal import of an image works. The image should be added to the appx and work in release. -- If it isn't, then that's something we will look into. |
@Omar-Belghaouti @acoates-ms @chrisglein This is related to I think it's because react native assets not being bundled in code push JS bundle This issue might help |
@aalbaharnah Thanks for the remark, I did in fact use code push in this project. Never thought it's because of it. But nevertheless, I think code push must bundle all the assets! |
CC @qmatteoq FYI - something to look out for |
tagging to bring this back to triage |
require
assets, need to explicitly use ms-appx/ms-appdata and lose require
benefits)
What is the status of that one? |
Environment
npx react-native --version
: 4.13.1npx react-native info
:Steps To Reproduce
Expected Results
Images can be displayed in release build.
Example code snippet
The text was updated successfully, but these errors were encountered: