Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use client-side with React Native #74

Closed
joncursi opened this issue Apr 27, 2017 · 3 comments
Closed

Cannot use client-side with React Native #74

joncursi opened this issue Apr 27, 2017 · 3 comments

Comments

@joncursi
Copy link

After installing the module into my react native app, I get:

screen shot 2017-04-27 at 12 50 23 pm

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?

@ageitgey
Copy link
Owner

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.

@joncursi
Copy link
Author

Okay, thank you for the info!

@JulianKingman
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants