This commit is contained in:
oneao committed 2026-03-08 22:17:01 +08:00
1 parent 26ff2381b7
commit 00a1cce5ac
22 files changed
+335 -215

No files matched your search

@@ -17,6 +17,8 @@ export interface AInputProps extends Omit<TextInputProps, 'onChange'> {
leftIcon?: ComponentType
className?: string
style?: StyleProp<ViewStyle>
inputClassName?: string
inputStyle?: StyleProp<ViewStyle>
}
const AInput = forwardRef<React.ComponentRef<typeof InputField>, AInputProps>(
@@ -32,6 +34,8 @@ const AInput = forwardRef<React.ComponentRef<typeof InputField>, AInputProps>(
leftIcon,
className,
style,
inputClassName,
inputStyle,
...rest
}, ref) => {
const [showPassword, setShowPassword] = useState(false)
@@ -56,6 +60,8 @@ const AInput = forwardRef<React.ComponentRef<typeof InputField>, AInputProps>(
<InputField
ref={ref}
className={inputClassName}
style={inputStyle}
type={isPassword ? (showPassword ? 'text' : 'password') : 'text'}
{...rest}
/>