Open History to see the last commit
1import { AppTextInput } from "./AppText";
2import type { SecretTextInputProps } from "./SecretTextInput.types";
3
4/** Masked field for a value that must stay out of password managers and suggestions. */
5export function SecretTextInput(props: SecretTextInputProps) {
6 return (
7 <AppTextInput
8 accessibilityLabel={props.accessibilityLabel}
9 placeholder={props.placeholder}
10 value={props.value}
11 onChangeText={props.onChangeText}
12 editable={props.editable}
13 secureTextEntry
14 autoCorrect={false}
15 autoCapitalize="none"
16 autoComplete="off"
17 textContentType="none"
18 importantForAutofill="no"
19 spellCheck={false}
20 returnKeyType="done"
21 onSubmitEditing={(event) => props.onSubmitEditing(event.nativeEvent.text)}
22 />
23 );
24}