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:


@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
  uri => {
    console.log('Image saved to', uri);
    Sharing.shareAsync('file://' + uri);
  error => console.error('Oops, snapshot failed', error)

Thanks for the support !!!


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