Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 28463

Google cloud platform image URL doesn't work on web, but works on react-native app

$
0
0

I'm using a react-native app to upload images on Google Cloud Platform (all images are from phone storage, Android). In general, everything works fine, but sometimes happens that some photos aren't uploaded correctly.

Using the Google Cloud platform console I am able to generate an URL for each asset stored on it (e.g. https://32asd0a234239032439420432-apidata.googleusercontent.com/download/storage/...)

If I'm trying to access this URL from chrome browser (or any other web browser) I only get a blank image with a white bordered square like in the image below.

https://imgur.com/9LXnXID.png

If I pass the exact same URL to the uri parameter of FastImage component for react-native, then the image is displayed on the mobile without problems.

Does anyone else encountered this problem? Any info is helpful :)


Viewing all articles
Browse latest Browse all 28463

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>