-
Notifications
You must be signed in to change notification settings - Fork 88
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
[Magic SDK for React Native] Missing dependencies on Android build #131
Comments
It might be related with the fact that React Native runs on top of JavaScriptCore which doesn't have support yet for BigInt nor SharedArrayBuffer. In theory and assuming this is the root cause, the library might work just fine on Chrome but have similar issue on Safari which also runs on top of JavaScriptCore. |
Here's an update to it. One of our RN dependency
I'll draft a quick fix to correct it. Thank you for your patience. |
🚀 Issue was released in |
✅ Prerequisites
magic-sdk
)?❓ Question
I have been trying to integrate Magic SDK for React Native on a project, however I am struggling to get it to work properly.
When I build the app on an Android device, it fails with the following error: "Can't find variable: BigInt".
I managed to surpass this issue using a polyfill (i.e., inserting on global.js: global.BigInt = require('big-integer');).
However, another ReferenceError occurs ("Can't find variable: SharedArrayBuffer").
It is a configuration problem?
Thanks in advance for any help you are able to provide! :)
🌎 Environment
| Software | Version(s) |
| ---------------- : ---------- |
| "@magic-sdk/react-native": "^2.6.0" |
| "react": "16.13.1" |
| "react-native": "0.63.2" |
| "react-native-webview": "^10.8.2" |
|
yarn
: 1.22.5 || Operating System : Android 10 |
The text was updated successfully, but these errors were encountered: