-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Also am having this problem when trying to implement the example code |
Beta Was this translation helpful? Give feedback.
-
oufff!! i have finally found a solution that has worked for me: 2- uninstall the lastest image-picker module and install the old one: 3- edit permissions:
4- compile app : npx react-native run-android |
Beta Was this translation helpful? Give feedback.
-
The latest version works just fine and is used in production daily. |
Beta Was this translation helpful? Give feedback.
oufff!! i have finally found a solution that has worked for me:
1- Edit the gradle file : "project_name\android\build.gradle":
buildscript {
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29
}
#to avoid error: use a compatible library with a minsdk of at most 16
2- uninstall the lastest image-picker module and install the old one:
- npm uninstall react-native-image-picker
- npm install react-native-image-picker@2.3.4 --save
- react-native link react-native-image-picker
- npx react-native start --reset-cache
3- edit permissions:
- ios: ios/project_name/Info.plist
...
NSPhotoLibraryUsageDescription
$(PRODUCT_NAME) voudrait accéder à votre g…