0

I'm trying to implement suggest a new password feature into my app, But instead of a password it shows a yellow background when we press return from the password field how to solve this

  <TextInput
    placeholder={placeHolderText}
    contentType={contentType}
    value={value}
    autoCorrect={false}
    passwordRules={passwordRules}  //  'required: lower; required: upper; required: digit; required: [@]; minlength: 8;'
    textContentType={textContentType}  //   textContentType="newPassword"
    keyboardType={keyboardType === 'number' ? 'number-pad' : 'default'}
    secureTextEntry={secureTextEntry}
    returnKeyType={returnKeyType}
    onPress={onPress}
   
  />

enter image description here

Ajith
  • 775
  • 1
  • 13
  • 47

1 Answers1

0

Combining @iamgerardm solution with a Keyboard dismiss on submit seems to get the desired behavior back. `import { Keyboard } from 'react-native'

blurOnSubmit={false}
onSubmitEditing={()=> Keyboard.dismiss()}`
Surya
  • 546
  • 7
  • 13