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
React Native support #170
Comments
I tried using Hermes but still get the BigInt issue, how did you resolve it. I would really appreciate exact steps. |
@hiteshjoshi1 thank you for the questions!
BigInt was added to Hermes in the version bundled with React Native 0.70. However even on v0.70, it seems the Babel presets transform BigInt's into numbers causing a
We have a working demo showcasing how xmtp-js can be used today, but the |
Thanks, I upgraded my app to react v0.70 and still had the issue. But, I have not tried - |
now that we have a proper react native SDK, closing this issue. |
Context
Attempting to use
xmtp-js
in React Native will produce errors relating toethers
missing modules,BigInt
type conversion, and missing crypto APIs.Problem
Developers cannot use XMTP in React Native.
Goal
Unblock developers from developing with React Native by providing a proof-of-concept React Native example using
xmtp-js
.Resolution
ethers
missing modules errorBigInt
type conversion errorBigInt
: Hermes v0.70 for both iOS and Android , JavaScriptCore for iOS starting with iOS 14, and V8 for Android.Missing crypto APIs
The text was updated successfully, but these errors were encountered: