import React from 'react'; import { TextInput, ViewStyle, StyleProp, TextInputProps, GestureResponderEvent } from 'react-native'; import { ThrottleOptions } from '../../internal/utils/useThrottledPressHandler'; /** * ## SearchField 컴포넌트 * * TextInput 컴포넌트처럼 사용하시면 됩니다. * - onChange prop은 지원하지 않습니다. onChangeText를 사용해주세요. * - maxLength : 유저의 악의적인 입력을 예방하기 위해 기본값을 30으로 지정해두었습니다. * * ### Props * - onPress : 함수를 전달하면 버튼처럼 사용할 수 있습니다. (ex. 화면 이동 트리거) * - hideSearchIcon : 좌측 돋보기 아이콘을 감출 수 있습니다. * - containerStyle : 컨테이너 스타일을 지정할 수 있습니다. */ export declare const SearchField: React.ForwardRefExoticComponent & { /** * 함수를 전달하면 버튼처럼 사용할 수 있습니다. * (입력 영역이나 클리어 버튼을 눌러도 함수가 실행됩니다.) */ onPress?: ((event: GestureResponderEvent) => void) | undefined; /** * 좌측 돋보기 아이콘을 감춥니다. (기본값 false) */ hideSearchIcon?: boolean | undefined; containerStyle?: StyleProp; } & ThrottleOptions & React.RefAttributes>;