MetaMask / metamask-sdk

The simplest yet most secure way to connect your blockchain-based applications to millions of MetaMask Wallet users.
https://metamask.io/sdk/
Other
154 stars 93 forks source link

[Bug]: Unable to login with @aws-amplify/ui-react-native #753

Open awbernardin0 opened 5 months ago

awbernardin0 commented 5 months ago

SDK

React-Native

Provide environment information

Unable to login with @aws-amplify/ui-react-native when used together metamask-sdk for React Native.

MetaMask SDK Version

@metamask/sdk-react": "^0.14.2"

MetaMask Mobile app Version

MetaMask v7.14.0(1242)

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

Unable to login with @aws-amplify/ui-react-native when used together metamask-sdk for React Native.

I used the reactNativeDemo repository from https://github.com/MetaMask/metamask-sdk/tree/main/packages/examples/reactNativeDemo After I integrate aws-amplify I am unable to login

Screenshot 2024-03-09 at 3 09 32 PM

Simulator Screenshot - iPhone 15 Pro - 2024-03-09 at 15 03 35

I have to comment out the SDKConfigProvider and WithSDKConfig for it to work and I was be able to login.

Screenshot 2024-03-09 at 3 09 24 PM

Simulator Screenshot - iPhone 15 Pro - 2024-03-09 at 14 35 35 Simulator Screenshot - iPhone 15 Pro - 2024-03-09 at 15 04 22

Expected Behavior

Should be able to login login with @aws-amplify/ui-react-native when used together metamask-sdk for React Native.

Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster

https://github.com/awbernardin0/metamask-sdk/tree/bug/aws-amplify/packages/examples/reactNativeDemo

To Reproduce

Integrate @aws-amplify/ui-react-native in the reactNativeDemo https://github.com/MetaMask/metamask-sdk/tree/main/packages/examples/reactNativeDemo

Login does not work

andreahaku commented 5 months ago

@A-Feder we don't have official support for it but we'll try to replicate the setup and try to understand what's needed to support it. Thanks for reporting.