Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
793 views
in Technique[技术] by (71.8m points)

amazon web services - Aws Amplify Auth does not work in react native app

I want to use AWS Amplify within my react native app as suggested here: I wanted to integrate the basic usage within my app. Here is the basic usage as suggested from the docs:

const App = () => (
  <AmplifyAuthenticator>
    <div>
      My App
     <AmplifySignOut />
   </div>
 </AmplifyAuthenticator>

) ;

My app, after adding the aws auth:

  function App() {
    return (
      <AmplifyAuthenticator>
        <NavigationContainer>
           <SomeStack />
        </NavigationContainer>
        <AmplifySignOut />
     </AmplifyAuthenticator>
   ); 
 }

Instead of showing the authentication flow it gives me the following error: 414 Authenticator - Failed to verify contact, [Invariant Violation: View config getter callback for component amplify-authenticator must be a function (received undefined). Make sure to start component names with a capital letter.]

Before adding the aws auth, my app was working as expected, but I don't understand where the problem is.

question from:https://stackoverflow.com/questions/65642711/aws-amplify-auth-does-not-work-in-react-native-app

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...