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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…