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

React Native: Error decoding image data from CameraRoll.saveToCameraRoll

$
0
0

I'm getting a warning sign, saying

Possible: Unhandled Promise Rejection: Error: Error decoding image data

This is my code.

for (let media of mediaArray) {   
  await CameraRoll.saveToCameraRoll(
    'https://someurl.mp4',
  ); 
}

I was able to get this to work with a url that has a .jpg, but when I tried a .mp4 url, it doesn't work. I know the url is correct, but not sure why I'm getting this? Am I missing something if I have to save both either photo or video?


Viewing all articles
Browse latest Browse all 16750

Trending Articles



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