From c791bd176676e60c7465803d78f86cd41faaa866 Mon Sep 17 00:00:00 2001 From: fancydevpro Date: Tue, 10 Mar 2020 19:05:12 +0800 Subject: [PATCH 1/3] set the type as image in ImagePickerModule.java --- android/src/main/java/com/imagepicker/ImagePickerModule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/imagepicker/ImagePickerModule.java b/android/src/main/java/com/imagepicker/ImagePickerModule.java index 48fb5c1a8..c2bbb886a 100644 --- a/android/src/main/java/com/imagepicker/ImagePickerModule.java +++ b/android/src/main/java/com/imagepicker/ImagePickerModule.java @@ -355,8 +355,9 @@ public void launchImageLibrary(final ReadableMap options, final Callback callbac requestCode = REQUEST_LAUNCH_IMAGE_LIBRARY; libraryIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); + libraryIntent.setType("image/*"); - if (pickBoth) + if (pickBoth) { libraryIntent.setType("image/* video/*"); } From be614735458db38d955342557cd7fe501bc1d8a3 Mon Sep 17 00:00:00 2001 From: fancydevpro Date: Wed, 11 Mar 2020 16:37:07 +0800 Subject: [PATCH 2/3] update package name for npm publish --- package.json | 2 +- react-native-image-picker.podspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a5d230eb5..f03d31eb5 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "react-native-image-picker", + "name": "@fancydevpro/react-native-image-picker", "version": "2.3.1", "description": "A React Native module that allows you to use native UI to select media from the device library or directly from the camera", "react-native": "src/index.ts", diff --git a/react-native-image-picker.podspec b/react-native-image-picker.podspec index da44940c1..fe519affc 100644 --- a/react-native-image-picker.podspec +++ b/react-native-image-picker.podspec @@ -3,7 +3,7 @@ require 'json' package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) Pod::Spec.new do |s| - s.name = package['name'] + s.name = "react-native-image-picker" s.version = package['version'] s.summary = package['description'] s.license = package['license'] From e5975c33641fe0bf7afff6803e0a8671eb092d9f Mon Sep 17 00:00:00 2001 From: fancydevpro Date: Wed, 11 Mar 2020 16:39:44 +0800 Subject: [PATCH 3/3] update version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f03d31eb5..a22b41557 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fancydevpro/react-native-image-picker", - "version": "2.3.1", + "version": "2.3.2", "description": "A React Native module that allows you to use native UI to select media from the device library or directly from the camera", "react-native": "src/index.ts", "types": "lib/typescript/index.d.ts",