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

Share video to Instagram on IOS with react-native-share

$
0
0

I'm using "rn-fetch-blob", "react-native-fs" and "react-native-share" to share video to instagram. Video is downloaded from server, stored in cache, then path provided to shareOptions.

On Andrid works perfectly but on IOS post in Instagram have black preview screen. I know that Instagram takes first frame from video to make preview and my video haven't any black frames. I suppose it's something wrong with "react-native-share" library, but i can't understand what is the problem

Here is the code I`m using

RNFetchBlob.config({
fileCache: true,
appendExt: "mp4" })
   .fetch("GET", data.video)
   .then(async res => {
    const path = await res.path()
    const shareOptions = {
     url: path,
    }
    try {
      await Share.open(shareOptions)
....

Viewing all articles
Browse latest Browse all 16552

Trending Articles



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