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
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen