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

Question: Image from localhost URL not rendering #26516

Closed
bsor-dev opened this issue Sep 20, 2019 · 3 comments
Closed

Question: Image from localhost URL not rendering #26516

bsor-dev opened this issue Sep 20, 2019 · 3 comments
Labels
Component: Image Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot. Type: Question Issues that are actually questions and not bug reports.

Comments

@bsor-dev
Copy link

bsor-dev commented Sep 20, 2019

I'm trying to display my uploaded image saved from to my backend folder. Its on different file so to retrieve I have to call it http://localhost:3333/api/userprofile/5/5.jpeg. But it does not work on my react native code, I tested it on android and IOS

<Thumbnail
                  small
                  source={{
                    uri: `http://localhost:3333/userprofile/${this.props.user.id}/${
                      this.props.user.avatar
                    }`
                  }}
                />

it works when I open it on browser. It also work if I use different url like https://picsum.photos/200/300 how to deal with this?

This is kinda similar to this question but don't have proper answer
#3496

@bsor-dev bsor-dev added the Type: Question Issues that are actually questions and not bug reports. label Sep 20, 2019
@bsor-dev bsor-dev changed the title Question: Can't display image from localhost URL Question: Image from localhost URL not rendering Sep 20, 2019
@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

👉 Click here if you want to report a reproducible bug or regression in React Native.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Resolution: No Template labels Sep 20, 2019
@Alisson9423
Copy link

same problem here

@vinicius507
Copy link

Did you fix it?

@facebook facebook locked as resolved and limited conversation to collaborators Oct 3, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: Image Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot. Type: Question Issues that are actually questions and not bug reports.
Projects
None yet
Development

No branches or pull requests

4 participants