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
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions