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

<Image /> Local URL not working #778

Open
rickheere opened this issue Jan 3, 2024 · 1 comment
Open

<Image /> Local URL not working #778

rickheere opened this issue Jan 3, 2024 · 1 comment
Assignees

Comments

@rickheere
Copy link

Hi everyone,

In the docs it is mention that bundled assets can be targeted by path starting with ./:
Local URL: eg ./profile.png. This image must be bundled as an asset in the mobile app.

But this doesn't work.

I had a look at the code and it looks like the ./ path gets normalized with the server url and then passed in as imageProps.source = { uri: source };.

From what I can see in the React Native docs local assets need to be required() and can be assigned to the source prop right away.

@adamstep
Copy link
Contributor

adamstep commented Jan 3, 2024

Thanks for flagging, we will look into it since it seems like a regression and local URLs should work as documented.

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

3 participants