Closed joncursi closed 7 years ago
No, this library only works server-side.
However there are some open PRs that modify this library to work client-side like #68. I just haven't merged them because this library was never really designed to work client-side and requires data files that might be slow/too large to "bake in" to the code like that PR does.
Okay, thank you for the info!
@joncursi fs doesn't work on react native, did you try using this? https://github.com/itinance/react-native-fs
I think you'll have to modify references to fs
and replace them with react-native-fs
, but you could probably get it to work.
After installing the module into my react native app, I get:
I tried manually adding
fs
to package.json to make sure it's there in the module map, but same error. Is it possible to use this library client-side in an RN app?