Skip to content

Commit

Permalink
Change keyboardavoidingbehviour
Browse files Browse the repository at this point in the history
- For some reason 'behaviour=padding' caused lot of rerenders
and it would crash the app
- also add onBlur for repeated pw validation
  • Loading branch information
rottabonus committed Oct 19, 2024
1 parent 9deacff commit 2de2dcf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Screens/Main/Settings/Password/PasswordForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ export default (props: Props) => {
};

return (
<RN.KeyboardAvoidingView
style={styles.keyboardAvoider}
behavior={'padding'}
>
<RN.KeyboardAvoidingView style={styles.keyboardAvoider}>
<RN.View>
<NamedInputField
style={styles.field}
Expand Down Expand Up @@ -78,6 +75,7 @@ export default (props: Props) => {
handleChange(props.setRepeatedNewPassword, value)
}
onSubmitEditing={handlePasswordValidate}
onBlur={handlePasswordValidate}
testID="main.settings.account.password.repeat"
isError={passwordState.second}
/>
Expand Down

0 comments on commit 2de2dcf

Please sign in to comment.