ivpusic / react-native-image-crop-picker

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

Android HEIC file problem. #1894

Open andrei0807 opened 1 year ago

andrei0807 commented 1 year ago

Version

Tell us which versions you are using:

Platform

Tell us to which platform this issue is related

I can not select HEIC file in android device when I select true for cropping. HEIC images was foggy. How can I solve this problem?

andrei0807 commented 1 year ago

https://github.com/ivpusic/react-native-image-crop-picker/blob/9cfde20678d4fc9c094c9be5e53d2bb376579040/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java#L372

add "image/heic" in this line

String[] mimetypes = {"image/jpeg", "image/png", "image/heic"};

https://github.com/ivpusic/react-native-image-crop-picker/pull/1897/commits/58ed44edb7cad2bdda8277b32db4dd5b828518ac