Jose-cd / React-google-drive-picker

58 stars 70 forks source link

Can't find variable: document error on React Native #33

Open mchriss opened 2 years ago

mchriss commented 2 years ago

Calling the const [openPicker, authResponse] = useDrivePicker(); function causes the app to crash, with the above mentioned error.

Is this package incompatible with React Native?

lekbit commented 1 year ago

I have the same question. Is it that hard to give a quick answer?

zgordon02 commented 7 months ago

Of course this package is incompatible with react native. It functions by opening a browser window for auth and injecting google's content over your webpage

I am working on a react native solution. Our react web app will host a page with this react-picker. We will open that page with an in-app webview, and using a redirect, the app can pick up the file ids that come back from the picker