[Magic SDK for React Native] Missing dependencies on Android build
See original GitHub issue✅ Prerequisites
- [✅] Did you perform a cursory search of open issues? Is this question already asked elsewhere?
- [✅] Are you reporting to the correct repository (
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 |
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top GitHub Comments
Hey @prbdias @phbdias, I’ll take a closer look to see what’s the missing pieces. Sorry for the late reply
@Ethella I’ve just tried and it’s working like charm. 🎉🎉🎉
Thank you!