-
Notifications
You must be signed in to change notification settings - Fork 152
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
Support for React Native #61
Comments
Did you try with casual-browserify? https://github.com/Klowner/casual-browserify or read the discussion in #59 |
It seems that one has exactly the same problem: https://github.com/Klowner/casual-browserify/blob/browserify/src/casual.js |
@milhauscz I sent a PR to the library to remove dynamic imports and If you want to use it, try the following
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
React Native doesn't run in Node.js environment (see StackOverflow), therefore requiring the 'fs' module causes an error. Furthermore, it seems React Native doesn't support programmatic require (called in a loop over an array of providers). I was able to fix this by replacing the for loop with individual statements without using the safe_require function which uses 'fs', unfortunately with a fixed en_US locale, e.g.:
The text was updated successfully, but these errors were encountered: