gregfenton / expo-image-picker-multiple-example

A demo of the use of my fork of expo-image-multi-picker
1 stars 0 forks source link

Failed to get permissions #1

Open iamhaaamed opened 3 years ago

iamhaaamed commented 3 years ago

i get [Error: Failed to get permissions] on "expo": "~40.0.0" and this is my app.json permissons: "permissions": [ "CAMERA", "READ_INTERNAL_STORAGE", "WRITE_INTERNAL_STORAGE", "READ_EXTERNAL_STORAGE", "WRITE_EXTERNAL_STORAGE" ]

gregfenton commented 3 years ago

Looks like an issue with the underlying library, expo-image-picker-multiple (EIPM) and expo SDK 40.

There is a release of EIPM that includes the pull request from my fork. So removing the dependency on my fork and using the main repo works fine, but only with Expo SDK 39 (and likely 38).

Here's how I got this example running:

  1. npm uninstall expo-image-picker-multiple - this removes the reference to my fork
  2. rm node_modules - get yourself back to a "clean" environment
  3. npm install - this will install expo SDK 39 because that is what is referenced in package.json
  4. expo install expo-image-picker-multiple - this adds from the original repo
  5. npm start ios - app starts up and is working

Consider posting a reproducible of your error to the main repo to see if anyone will resolve it. It appears to be a change in the permissions that came with Expo SDK 40 - the permission CAMERA_ROLL in v39 has been removed from v40. And no mention that I can find in the SDK 40 release notes.

Thanks for reaching out!