Open gilles-hemmerle opened 5 months ago
We haven't tried using wormhole-sdk in a React Native env yet. I just tested it and indeed there are some issues. I will try to fix these issues this week. Thanks for the report!
Hey @gilles-hemmerle, could you try wormhole-sdk v0.3.1-rc.2? Here is an example(based on your repo): https://github.com/Lbqds/react-native-wormhole-sdk-example. Please note that you also need to add a resolver config to metro.config.js
: https://github.com/Lbqds/react-native-wormhole-sdk-example/blob/6329474004f9b6f5386a8bfd4e47d852209035d3/metro.config.js#L9.
Seems to work with this version, thanks a lot! This ticket is resolved.
PS: Will do some test to finalize a transferLocalTokenFromAlph
transaction asap and I will give you some feedback as soon as I am able to finalize my transaction.
I'm trying to import the
transferLocalTokenFromAlph
function from the@alephium/wormhole-sdk
in a react native application.Have you already tried or do you have plan to make it work?
On my side I get the following error :
Version :
If no plans, I will have to rewrite stuff directly in the sezame wallet, which I would avoid in order not having duplicate code.
How to reproduce :
package.json
App.tsx