MetaMask / MetaMask/metamask-sdk

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

Open
#753 1 comment 0 reactions 1 assignee View on GitHub

@omridan159 is already working on this.

Since Mar 18, 2024.

enhancement
Dominant language
TypeScript
Stars
338
Forks
260
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.