amplify withAuthenticator component works on web, but not on mobile (no error logs)

0

Here is a repository I created that contains a reproducible minified example of the issue. There is also a stack overflow thread describing a similar issue, however that issue has logs.

This seems to explicitly be an issue with expo-router's interaction with '@aws-amplify/ui-react-native'. The issue persists with both <Authenticator.Provider> and withAuthenticator.

Issue

  • the higher-order component withAuthenticator works as expected on web

  • does not work on mobile (iOS or Android)

    • there are no logs to indicate what the issue is
  • Here are images of the issue: images for all three platforms

To Reproduce

  • git clone this repository
  • install the npm packages with npm install
  • run with npx expo start
    • test on web by pressing w in the terminal or visiting localhost:8081
    • run the iOS simulator by pressing i (if on a Mac)
    • test with android by pressing a
已提问 1 个月前134 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则