ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.16k stars 1.56k forks source link

Redmi Note 10 S Android 11 having error [Error: Invalid image selected] #1714

Open riyas145 opened 2 years ago

riyas145 commented 2 years ago

Android 11 (Redmi Note 10S)

Tell us which versions you are using:

Platform

Android 11 (Redmi Note 10S)

Expected behaviour

Image Path

Actual behaviour

[Error: Invalid image selected] I Have added

Steps to reproduce

After adding android:requestLegacyExternalStorage="true" on android/app/src/main/AndroidManifest.xml still i'm having issues Phone: Redmi Note 10 S for Samsung that was working fine

Attachments

// stacktrace or any other useful debug info

Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate

Sharqiyem commented 2 years ago

I have the same issue. any updates?

riyas145 commented 2 years ago

@Sharqiyem Downgrade this plugin version that will work

shivamKredX commented 2 years ago

downgrade to which version ?

riyas145 commented 2 years ago
"react-native-image-crop-picker": "^0.32.2", @shivamKredX 
MuhammadRafeh commented 2 years ago

for android 11:

</application>
+ <queries>
+  <intent>
+     <action android:name="android.intent.action.VIEW" />
+    <!-- If you don't know the MIME type in advance, set "mimeType" to "*/*". -->
+    <data android:mimeType="application/pdf" />
+   </intent>
+ </queries>
</manifest>

Add these lines in android manifest and don't forget to remove (+) , may be it'll solve the problem

ivpusic commented 2 years ago

try version https://github.com/ivpusic/react-native-image-crop-picker/releases/tag/v0.38.0

ddikodroid commented 2 years ago

Android 11 (Redmi Note 10S)

Tell us which versions you are using:

  • react-native-image-crop-picker ^0.37.2
  • react-native 0.66.4

Platform

Android 11 (Redmi Note 10S)

  • Android

Expected behaviour

Image Path

Actual behaviour

[Error: Invalid image selected] I Have added

Steps to reproduce

After adding android:requestLegacyExternalStorage="true" on android/app/src/main/AndroidManifest.xml still i'm having issues Phone: Redmi Note 10 S for Samsung that was working fine

Attachments

// stacktrace or any other useful debug info

Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate

PR https://github.com/ivpusic/react-native-image-crop-picker/pull/1722 was merged