Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,31 +1,2 @@
```js{5-23}
export default function App() {
return (
<Authenticator.Provider>
<Authenticator
signUpAttributes={[
"address",
"birthdate",
"email",
"family_name",
"gender",
"given_name",
"locale",
"middle_name",
"name",
"nickname",
"phone_number",
"picture",
"preferred_username",
"profile",
"updated_at",
"website",
"zoneinfo",
]}
>
<SignOutButton />
</Authenticator>
</Authenticator.Provider>
);
}
```jsx expoSnack file=../../../../../../../examples/react-native/src/features/Authenticator/SignUpAttributesAll/Example.tsx
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import React from 'react';
import { Button } from 'react-native';

import { Authenticator, useAuthenticator } from '@aws-amplify/ui-react-native';
import { Amplify } from 'aws-amplify';

import awsconfig from './aws-exports';

Amplify.configure(awsconfig);

function SignOutButton() {
const { signOut } = useAuthenticator();
return <Button title="Sign Out" onPress={signOut} />;
}

function App() {
return (
<Authenticator.Provider>
<Authenticator
signUpAttributes={[
'address',
'birthdate',
'email',
'family_name',
'gender',
'given_name',
'locale',
'middle_name',
'name',
'nickname',
'phone_number',
'picture',
'preferred_username',
'profile',
'updated_at',
'website',
'zoneinfo',
]}
Comment on lines +20 to +38
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need an example for this? Feel like a list of attributes/link to the OIDC spec should be sufficient?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense, I thought I was missing something. Will update docs to just list these

>
<SignOutButton />
</Authenticator>
</Authenticator.Provider>
);
}

export default App;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default {};