RobinBobin / react-native-google-drive-api-wrapper

This wrapper facilitates the use of the Google Drive API in React Native projects.
110 stars 43 forks source link

Can this be used in Expo? #11

Closed asp3 closed 5 years ago

asp3 commented 5 years ago

I saw that it needs to link a library, but expo doesn't allow that. Is there any way to use it without having to export?

RobinBobin commented 5 years ago

My package uses react-native-fs, which needs linking, to implement GDrive.files.download(). It's not used otherwise.

So if you find a package implementing Google Drive sign-in, which can be used in Expo, you're good to go. I haven't tried it myself though.

asp3 commented 5 years ago

so if i were just using the .get function, would I need to use react-native-fs?

RobinBobin commented 5 years ago

Nope.

asp3 commented 5 years ago

perfect, thanks!

RobinBobin commented 5 years ago

Glad my package suits your needs.

You're welcome.

Понедельник, 15 апреля 2019, 23:28 +03:00 от Abhishek Patel notifications@github.com:

perfect, thanks! — You are receiving this because you commented. Reply to this email directly, view it on GitHub , or mute the thread .

-- � убен Шалимов

ksrudeboy commented 4 years ago

Expo has its own fs module. Will it work with that or it specifically needs react-native-fs??

RobinBobin commented 4 years ago

Files.js imports RNFS from react-native-fs and then invokes downloadFile() on it. Thus, everything will work, if you change the import statement and the module you currently have supports the same functionality.