diff --git a/node_modules/react-native-document-picker/android/src/main/java/com/reactnativedocumentpicker/RNDocumentPickerModule.java b/node_modules/react-native-document-picker/android/src/main/java/com/reactnativedocumentpicker/RNDocumentPickerModule.java index 5001525..3dc57a3 100644 --- a/node_modules/react-native-document-picker/android/src/main/java/com/reactnativedocumentpicker/RNDocumentPickerModule.java +++ b/node_modules/react-native-document-picker/android/src/main/java/com/reactnativedocumentpicker/RNDocumentPickerModule.java @@ -146,7 +146,9 @@ public class RNDocumentPickerModule extends NativeDocumentPickerSpec { boolean multiple = !args.isNull(OPTION_MULTIPLE) && args.getBoolean(OPTION_MULTIPLE); intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, multiple); - currentActivity.startActivityForResult(intent, READ_REQUEST_CODE, Bundle.EMPTY); + // currentActivity.startActivityForResult(intent, READ_REQUEST_CODE, Bundle.EMPTY); + currentActivity.startActivityForResult(Intent.createChooser(intent, null), READ_REQUEST_CODE, Bundle.EMPTY); + } catch (ActivityNotFoundException e) { sendError(E_UNABLE_TO_OPEN_FILE_TYPE, e.getLocalizedMessage()); } catch (Exception e) {