question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Ethellacommented, Sep 16, 2020

Hey @prbdias @phbdias, I’ll take a closer look to see what’s the missing pieces. Sorry for the late reply

2reactions
prbdiascommented, Sep 19, 2020

@prbdias @phbdias @magic-sdk/react-native@2.7.1 has been released to resolve the issue. Feel free to give it a try.

@Ethella I’ve just tried and it’s working like charm. 🎉🎉🎉

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

@magic-sdk/react-native - npm
If this dependency causes you issues, consider enabling the expo library via npx install-expo-modules@latest . For more context, you may check: ...
Read more >
Pulling Android dependency in React Native - Stack Overflow
How do I install this dependency? EDIT: My newest plugin build.gradle is this, and it still throws an error due to the library...
Read more >
Integration with Existing Apps - React Native
Set up React Native dependencies and directory structure. · Develop your React Native components in JavaScript. · Add a ReactRootView to your ...
Read more >
React Native SDK - Stytch
The Stytch React Native SDKs provide the easiest way for you to use Stytch in your React Native projects. We provide separate SDKs...
Read more >
Magic for React Native
As of @magic-sdk/react-native v2.0.0: the sub-dependencyreact-native-webview is removed from the package dependencies and required as a peer dependency to avoid ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found