react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
Video selection denied from gallery in Android 10
Version
- react-native-image-crop-picker v0.32.2?
- react-native v0.62.2?
Platform
- Android
Expected behaviour
When I select a video from a gallery it should select the video and navigate back to the app
Actual behaviour
But when selecting video it is throwing an error saying Error not specified
Steps to reproduce
- Click to select a video from the gallery
- Select a video from the gallery
- After selecting the video from the gallery the above-specified error getting
For Android 10 , add following lines in AndroidManifest.xml
For Android 10 , add following lines in AndroidManifest.xml
Where are the lines?
Open the imagePicker like the following it works perfectly.
await ImagePicker.openPicker({ mediaType: 'any', compressVideoPreset: 'HighestQuality' })