natysoz / expo-images-picker

Multiple Asset Photos Videos selecting package for Expo SDK
MIT License
95 stars 35 forks source link

App Crushes after Allowing permission on android #51

Closed BismarkCodes closed 2 years ago

BismarkCodes commented 2 years ago

Hi, my app crashes every time I allow permissions to access files. Please any ideas as to what going on and how to fix it?

natysoz commented 2 years ago

can you share ur package json

natysoz commented 2 years ago

if this continue please re open and submit ur package json file

RogelioLB commented 2 years ago

hi, hope you will reading this, i have the same issue in my android device xiaomi redmi note 6 pro

{
  "name": "cbtis45-front",
  "version": "1.0.0",
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "@react-native-community/netinfo": "7.1.3",
    "@react-native-community/slider": "4.1.12",
    "@react-navigation/bottom-tabs": "^6.3.1",
    "@react-navigation/native": "^6.0.10",
    "@react-navigation/native-stack": "^6.6.1",
    "expo": "~44.0.0",
    "expo-av": "~10.2.0",
    "expo-document-picker": "~10.1.3",
    "expo-image-manipulator": "~10.2.0",
    "expo-image-picker": "~12.0.1",
    "expo-image-picker-multiple": "^1.4.1",
    "expo-images-picker": "^2.3.0",
    "expo-media-library": "~14.0.0",
    "expo-secure-store": "~11.1.0",
    "expo-status-bar": "~1.2.0",
    "expo-video-player": "^2.0.4",
    "formik": "^2.2.9",
    "jwt-decode": "^3.1.2",
    "moti": "^0.17.1",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-native": "0.64.3",
    "react-native-reanimated": "~2.3.1",
    "react-native-safe-area-context": "3.3.2",
    "react-native-screens": "~3.10.1",
    "react-native-web": "0.17.1",
    "yup": "^0.32.11"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "eslint": "^8.13.0",
    "eslint-config-airbnb": "^19.0.4",
    "eslint-plugin-import": "^2.26.0",
    "eslint-plugin-jsx-a11y": "^6.5.1",
    "eslint-plugin-react": "^7.29.4",
    "eslint-plugin-react-hooks": "^4.4.0"
  },
  "private": true
}

here my package.json, i alredy try the snack version and still crash after give permissions

RogelioLB commented 2 years ago

After a research, i know what happens, it seems like expo-media-library has an error in my device with android 9 with the media type videos, because i alredy tested in an android 10 and it works