react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

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

Open riyas145 opened this issue 3 years ago • 7 comments

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

riyas145 avatar Dec 30 '21 13:12 riyas145

I have the same issue. any updates?

Sharqiyem avatar Jan 17 '22 13:01 Sharqiyem

@Sharqiyem Downgrade this plugin version that will work

riyas145 avatar Jan 17 '22 13:01 riyas145

downgrade to which version ?

shivamKredX avatar Jan 20 '22 09:01 shivamKredX

"react-native-image-crop-picker": "^0.32.2", @shivamKredX 

riyas145 avatar Jan 20 '22 09:01 riyas145

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

MuhammadRafeh avatar Jan 30 '22 11:01 MuhammadRafeh

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

ivpusic avatar Jun 29 '22 08:06 ivpusic

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

ddikodroid avatar Aug 17 '22 02:08 ddikodroid