Skip to content

Commit

Permalink
Merge pull request #430 from SquareTable/429-add-enter-ability-when-s…
Browse files Browse the repository at this point in the history
…igning-up

Add enter key ability on signup
  • Loading branch information
Sebastian-Webster authored Aug 21, 2024
2 parents 6a59004 + f923745 commit 84c65e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions screens/Signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ const Signup = ({navigation, route}) => {
colors={colors}
textContentType="username"
usernameAvailabilityLoading={usernameAvailabilityLoading}
onSubmitEditing={handleSubmit}
/>

{usernameAvailableMessage ? <Text style={{color: usernameAvailableMessageColor, fontSize: 16, textAlign: 'center', marginHorizontal: '5%'}}>{usernameAvailabilityLoading ? ' ' : usernameAvailableMessage}</Text> : null}
Expand All @@ -266,6 +267,7 @@ const Signup = ({navigation, route}) => {
autoCapitalize="none"
colors={colors}
textContentType="emailAddress"
onSubmitEditing={handleSubmit}
/>

<UserTextInput
Expand All @@ -284,6 +286,7 @@ const Signup = ({navigation, route}) => {
colors={colors}
textContentType="newPassword"
passwordRules="minlength: 8; maxlength: 17;"
onSubmitEditing={handleSubmit}
/>

<UserTextInput
Expand All @@ -302,6 +305,7 @@ const Signup = ({navigation, route}) => {
colors={colors}
textContentType="newPassword"
passwordRules="minlength: 8; maxlength: 17;"
onSubmitEditing={handleSubmit}
/>
<MsgBox type={messageType}>{message}</MsgBox>
{!isSubmitting && (<StyledButton onPress={handleSubmit} style={usernameIsAvailable !== false ? {opacity: 1} : {opacity: 0.2}} disabled={usernameIsAvailable === false}>
Expand Down

0 comments on commit 84c65e6

Please sign in to comment.