-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Doesn't work with react-native #9
Comments
We can easily do a |
I'm getting an error:
which might be related. |
Leads to the following error now, when building with webpack:
|
Would you like to send a Pull Request to address this issue? Remember to add unit tests. |
Hey, this library works nice in node/browser. But unfortunately not with react-native, since there is no global
Buffer
element. Replacing that part withrequire('buffer').Buffer
works.So maybe this could be changed to something along:
let buffer = typeof Buffer !== 'undefined' ? Buffer : require('buffer').Buffer;
?The text was updated successfully, but these errors were encountered: