Expo-Sharing: iOS share sheet will auto dismissed

For some reason when I open the share sheet on iOS, it will dismiss the sheet the first time then I cannot open the share sheet again and will get the following error message.

Another item is being shared. Await the ‘shareAsync’ request and then share the item again

Information:

  1. SDK Version: 43
  2. Platforms: iOS
const handleShareFile = async () => {
    try {
      const canShare = await Sharing.isAvailableAsync();

      if (canShare) {
        await Sharing.shareAsync(fileUri);
      }
    } catch (error) {
      console.error(error);
    }
  };

ezgif.com-gif-maker

Hope this can helps, for iOS if any rerender happen when the share sheet opens, it will break the feature and cause the issue that I am having

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