import React, { useCallback, useState } from 'react';
import TextInput from '../index';
const PasswordInput = (props) => {
    const [hidePassword, setHidePassword] = useState(true);
    const hitSlop = {
        left: 40,
        right: 40,
        top: 40,
        bottom: 40,
    };
    const onPressShowPassword = useCallback(() => {
        setHidePassword(!hidePassword);
    }, [hidePassword]);
    return (<TextInput secureTextEntry={hidePassword} rightIconName={hidePassword ? 'eye' : 'eye-off'} iconTouchableEnabled onPressIcon={onPressShowPassword} onRightIconPress={onPressShowPassword} iconHitSlop={hitSlop} {...props}/>);
};
export default PasswordInput;
//# sourceMappingURL=index.js.map