update autocomplete props, rm textContentType
This commit is contained in:
@@ -232,11 +232,10 @@ export const LoginForm = ({
|
|||||||
label={_(msg`Password`)}
|
label={_(msg`Password`)}
|
||||||
autoCapitalize="none"
|
autoCapitalize="none"
|
||||||
autoCorrect={false}
|
autoCorrect={false}
|
||||||
autoComplete="password"
|
autoComplete="current-password"
|
||||||
returnKeyType="done"
|
returnKeyType="done"
|
||||||
enablesReturnKeyAutomatically={true}
|
enablesReturnKeyAutomatically={true}
|
||||||
secureTextEntry={true}
|
secureTextEntry={true}
|
||||||
textContentType="password"
|
|
||||||
clearButtonMode="while-editing"
|
clearButtonMode="while-editing"
|
||||||
onChangeText={v => {
|
onChangeText={v => {
|
||||||
passwordValueRef.current = v
|
passwordValueRef.current = v
|
||||||
|
|||||||
@@ -147,10 +147,10 @@ export const SetNewPasswordForm = ({
|
|||||||
label={_(msg`Enter a password`)}
|
label={_(msg`Enter a password`)}
|
||||||
autoCapitalize="none"
|
autoCapitalize="none"
|
||||||
autoCorrect={false}
|
autoCorrect={false}
|
||||||
autoComplete="password"
|
|
||||||
returnKeyType="done"
|
returnKeyType="done"
|
||||||
secureTextEntry={true}
|
secureTextEntry={true}
|
||||||
textContentType="password"
|
autoComplete="new-password"
|
||||||
|
passwordRules="minlength: 8;"
|
||||||
clearButtonMode="while-editing"
|
clearButtonMode="while-editing"
|
||||||
value={password}
|
value={password}
|
||||||
onChangeText={setPassword}
|
onChangeText={setPassword}
|
||||||
|
|||||||
@@ -211,6 +211,7 @@ function Inner() {
|
|||||||
secureTextEntry
|
secureTextEntry
|
||||||
autoCapitalize="none"
|
autoCapitalize="none"
|
||||||
autoComplete="new-password"
|
autoComplete="new-password"
|
||||||
|
passwordRules="minlength: 8;"
|
||||||
/>
|
/>
|
||||||
</TextField.Root>
|
</TextField.Root>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Reference in New Issue
Block a user