UNPKG

@ant-design/react-native

Version:

基于蚂蚁金服移动设计规范的 React Native 组件库

36 lines (35 loc) 1.04 kB
import { NativeSyntheticEvent, TextInputFocusEventData } from 'react-native'; declare function noop(): void; export interface SearchBarPropsType { defaultValue?: string; value?: string; placeholder?: string; onSubmit?: (value: string) => void; onChange?: (value: string) => void; onFocus?: (e: NativeSyntheticEvent<TextInputFocusEventData>) => void; onBlur?: (e: NativeSyntheticEvent<TextInputFocusEventData>) => void; onCancel?: (value: string) => void; showCancelButton?: boolean; cancelText?: string; disabled?: boolean; autoFocus?: boolean; focused?: boolean; onClear?: (value: string) => void; maxLength?: number; } export interface SearchBarState { value?: string; focus?: boolean; focused?: boolean; } export declare const defaultProps: { placeholder: string; onSubmit: typeof noop; onChange: typeof noop; onFocus: typeof noop; onBlur: typeof noop; onClear: typeof noop; showCancelButton: boolean; disabled: boolean; }; export {};