PasswordInput 密码输入
PasswordInput 是严格受控组件:value 与 onChangeText 都必填。它使用 Input 的 44pt frame 和 slot action,显示/隐藏只改变 secureTextEntry,不会清空文本或改变焦点。
<PasswordInput
value={password}
onChangeText={setPassword}
autoComplete="current-password"
maxLength={64}
accessibilityLabel="登录密码"
/>
所有可用 TextInput 选项都在顶层传入,不再支持 inputProps。未传时默认 textContentType="password"、autoComplete="current-password"、autoCapitalize="none";组件最终强制自身的 secureTextEntry。
PasswordInput 不接受 defaultValue、leading、trailing 或 caller secureTextEntry。disabled 或 editable={false} 时眼睛 action 没有有效 handler,朗读为 disabled。ref 为 TextFieldHandle,仅有 focus() / blur()。