0

Trying integrating Solana into React Native, but the Android app seems to be not working properly

The following transaction supposes to send 0.1 SOL, but it eventually send way less than that on Android. The same code (same implementation, same params) works fine on iOS though. On iOS it sends exact 0.1 SOL.

https://explorer.solana.com/tx/k4t3MGyecTqmA3nyKtyDubQ1brW1LnHV3MWAvNArB88k1bYX4wYW4H9ab4Dh75P1Egf25YrKzUrpqqX3dkXLRNm?cluster=devnet

Any idea guys?

The packages that I currently use

React Native: 0.67.5

@Solana/web3.js: 1.41.6

3

1 Answer 1

0

I add my own solution here

The JS engine I use is [email protected] which does not have BigInt supports. Upgrade to [email protected] solves the issue.

More details can be found here: https://github.com/react-native-community/jsc-android-buildscripts/issues/159

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.