mirror of
https://github.com/status-im/react-native-image-crop-picker.git
synced 2025-02-23 19:08:12 +00:00
Merge remote-tracking branch 'ivpusic/master'
This commit is contained in:
commit
a766f0ac0a
@ -302,7 +302,9 @@ class PickerModule extends ReactContextBaseJavaModule implements ActivityEventLi
|
|||||||
if (cropping) {
|
if (cropping) {
|
||||||
galleryIntent.setType("image/*");
|
galleryIntent.setType("image/*");
|
||||||
} else {
|
} else {
|
||||||
galleryIntent.setType("image/*,video/*");
|
String[] mimetypes = {"image/*", "video/*"};
|
||||||
|
galleryIntent.setType("*/*");
|
||||||
|
galleryIntent.putExtra(Intent.EXTRA_MIME_TYPES, mimetypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
galleryIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, multiple);
|
galleryIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, multiple);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user