1

i am using react-native-image-cache-hoc & Blob

const CacheableImage = imageCacheHoc(Image, {
  fileHostWhitelist: ['firebasestorage.googleapis.com']
});

and render

<CacheableImage style={styles.image} source={{ uri: this.props.uri }} permanent={false} />

this.props.uri :

https://firebasestorage.googleapis.com/v0/b/tura-113e0.appspot.com/o/userImages%2Fa@a.com%2Fimages%2FG%C3%B6khan%20Geyik?alt=media&token=54864e18-b9ce-42f3-84ae

* Then Error : props.source.uri should be a web accessible url with a valid protocol and host. NOTE: Default valid protocol is https, default valid hosts are .

error screen

Could you help me, please ? Thank you.

Gökhan Geyik
  • 313
  • 2
  • 14

1 Answers1

0

I solved the problem. I changed 'react-native-cacheable-image' to Fast Image 'react-native-fast-image.

If you want to use it you can read: https://github.com/DylanVann/react-native-fast-image

And i used this code then problem solved

<FastImage source={{  uri: this.props.uri }} />

Thank You

Gökhan Geyik
  • 313
  • 2
  • 14