[Android] Unable to pick native files from Google Drive (i.e.: docs, spreadsheet, slides) #467
Labels
addressed in premium version
This issue has been addressed (implemented, fixed) in the package available to sponsors.
Bug report
Summary
Unable to pick native files from Google Drive (i.e.: google docs, spreadsheet, slides) on Android as they are disabled, pdfs and images work fine though. iOS has no issues.
I tried to add the google mime types to the type key in the options prop as you can see below in the sample code, but that is not accepted.
DocumentPicker.types.allFiles
seems to not include google drive file types.If the library is missing support or will not support this feature, which I believe it should. Can someone please point me in the right direction of how to get it working?
Reproducible sample code
Current implementation
public static pickFile(options = { type: [DocumentPicker.types.allFiles] }) { return DocumentPicker.pick(options).then((filePicked) => { ... }); }
My unsucessfull tentative of get the google docs working:
public static pickFile(options = { type: [DocumentPicker.types.allFiles, 'application/vnd.google-apps.document'] }) { return DocumentPicker.pick(options).then((filePicked) => { ... }); }
Steps to reproduce
Describe what you expected to happen:
Environment info
Tested on versions:
iOS version: -
Android version: 11
The text was updated successfully, but these errors were encountered: