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/userprofile/5/5.jpeg. But it does not work on my react native code, I tested it on both 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.props.user.avatarcontains extension like.jpeg? If not you need to add it manually.source={{...}}I have doubt on this json syntaxhttp:/localhost:3333/userprofile/5/5.jpegand when I copy and paste on browser it works