node-google-spreadsheet icon indicating copy to clipboard operation
node-google-spreadsheet copied to clipboard

Can we use this in react native

Open achyuthjoism opened this issue 3 years ago • 5 comments

i am getting an error of Unable to resolve module child_process from node_modules\google-auth-library\build\src\auth\googleauth.js: child_process could not be found within the project.

pls help

achyuthjoism avatar Nov 06 '20 08:11 achyuthjoism

Same issue, I'm quite a beginner and cannot figure out how to have it work (using expo). "const { GoogleSpreadsheet } = require('google-spreadsheet');" gives this error. Should I "import" something instead of require ? Or maybe a basic example full code ? Thanks !

aymza avatar Feb 02 '21 06:02 aymza

Can you share a code snippet of the error it throws?

Also, I maybe wrong about this, but this package is not listed in the React Native Directory (directory of packages compatible with React Native with or without Expo).
According to the RN docs, if a package is not listed in the directory, it's not compatible with RN.

According to the Expo Team, a Node.js package may or may not work on RN. Read here https://forums.expo.io/t/can-i-use-node-js-packages-with-expo/2906

salikadave avatar Feb 06 '21 07:02 salikadave

I believe that we need to make the react native workflow server-side. or We should use get and fetch method in the react native app

Hope it helps.

achyuthjoism avatar Feb 10 '21 15:02 achyuthjoism

@achyuthjoism Could you explain better how to do this process in React Native. I'm still a beginner.

LucasBarbosaSilva avatar Sep 17 '21 12:09 LucasBarbosaSilva

@LucasBarbosaSilva Sir i could not solve the issue with React native so I switched to flutter, where you have a very good package called GSheet which is very useful and immutable. So switch to flutter. Hope it helps.

achyuthjoism avatar Sep 26 '21 03:09 achyuthjoism

Please try out the latest version and reopen if still having issues.

theoephraim avatar Jun 27 '23 06:06 theoephraim