Issue following the tutorial

Please provide the following:

  1. SDK Version:
  • expo V: 6.0.2
  1. Platforms(Android/iOS/web/all):
  • android

Simply following the tutorial, the process fails at this stage:

The error message that I get is

[Unhandled promise rejection: Error: Not allowed to read file under given URL.]

I did some digging and apparently it fails due to a bug in the sharing api and it is resolved by this stackoverflow question: How to share a local photo using React Expo Sharing.shareAsync? - Stack Overflow

import * as ImageManipulator from "expo-image-manipulator";

const openShareDialogAsync = async () => {
    let imageProc = await ImageManipulator.manipulateAsync(yourImageUri);
    // this returns an object including the uri
    await Sharing.shareAsync(imageProc.uri);

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