Skip to content

Commit

Permalink
chore: Add missing form fields to RNA example app
Browse files Browse the repository at this point in the history
  • Loading branch information
ioanabrooks committed Oct 25, 2023
1 parent de3d038 commit 447a036
Showing 1 changed file with 37 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,41 @@ Amplify.configure({
Auth: { endpoint: 'http://127.0.0.1:9091/' },
});

const formFields = {
signUp: {
zoneinfo: {
label: 'Zone Info',
isRequired: false,
type: 'text',
},
picture: {
label: 'Picture',
isRequired: false,
type: 'text',
},
updated_at: {
label: 'Updated at',
isRequired: false,
type: 'text',
},
address: {
label: 'Address',
isRequired: false,
type: 'text',
},
gender: {
label: 'Gender',
isRequired: false,
type: 'text',
},
locale: {
label: 'Locale',
isRequired: false,
type: 'text',
},
},
};

function App() {
return (
<Authenticator.Provider>
Expand All @@ -23,10 +58,11 @@ function App() {
ForceNewPassword: ({ fields, ...props }) => (
<>
<Authenticator.ForceNewPassword {...props} fields={fields} />
<TextField label="Zone Info" placeholder="Zone Info"></TextField>
<TextField label="Zone Info" placeholder="Zone Info" />
</>
),
}}
formFields={formFields}
>
<View style={style.container}>
<SignOutButton />
Expand Down

0 comments on commit 447a036

Please sign in to comment.