The current supported way to get image is by inserting the {uri:link} object to the source props of Image, however, this does not have authentication enabled. Is there a way to insert an authentication token into the url call or other ways to have authentication for retrieving images? Thanks a lot!
< Image
style={styles.logo}
source={{uri: 'http://facebook.github.io/react/img/logo_og.png'}}
/>
Are you using basic auth as your question tag suggests? If yes, you could bake it into the URL itself:
<Image
style={styles.logo}
source={{uri: 'https://USER:[email protected]/react/img/logo_og.png'}}
/>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments