Skip to content

Question: Image from localhost URL not rendering #26516

Closed
@bsor-dev

Description

@bsor-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: ImageRan CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.Type: QuestionIssues that are actually questions and not bug reports.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions