I'm not seeing the options for Google Drive or Dropbox, when running ios simulator I get taken right to iCloud document selection. Any ideas why that would be?
Code:
try {
const results = await DocumentPicker.pickMultiple({
type: [DocumentPicker.types.pdf],
});
for (const res of results) {
console.log(
res.uri,
res.type, // mime type
res.name,
res.size
);
}
} catch (err) {
if (DocumentPicker.isCancel(err)) {
// User cancelled the picker, exit any dialogs or menus and move on
} else {
throw err;
}
}
I am facing the same issue, is there a way to upload from photos? or take a photo directly from camera.
+1
same issue
any one solved the issue?
+1
If no one has a solution, does anyone have a suggestion for alternate library?
+1
+1
+1. Happening on physical device as well (made sure i had the google drive app installed, but still only the iCloud files window came up).
Figured it out. What you have to do is:
Hope this helps!
Figured it out. What you have to do is:
- Make sure you have google drive downloaded on the phone (not sure if you could download apps on simulator)
- Run the example code, then click on browse in the tab bar menu in the bottom when the i cloud drive window opens
- You should see either Google Drive appear right away or you might have a location that says "More locations". If this is the case, click on more locations and google drive should be there. From there, simply enable google drive and you should be able to use files from google
drive!Hope this helps!
tried this but still not getting google drive option (Drive app is installed on device)
+1
+1, has anyone figured this out?
Most helpful comment
tried this but still not getting google drive option (Drive app is installed on device)