Unable to Expo-Sharing using react-native-view-shot on iOS

Hi guys, yesterday i report the issue using Expo Sharing with react-native-view-shot, im unable to display proper sharing dialog on iOS in Android works as expected, here my github issue with captures and snacks:

https://github.com/expo/expo/issues/6920

@bacon Any advice will be welcome, thanks !!!

1 Like

Solved, here the working example:

import { captureRef } from 'react-native-view-shot';
import * as Sharing from 'expo-sharing';

captureRef(this._shareViewContainer, {
  // defaults
}).then(
  uri => {
    console.log('Image saved to', uri);
    Sharing.shareAsync('file://' + uri);
  },
  error => console.error('Oops, snapshot failed', error)
);

Thanks for the support !!!

5 Likes

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.