UNPKG

@uiw/react-native

Version:
30 lines (29 loc) 1.14 kB
import React from 'react'; import { StyleProp, ViewStyle, TextInputProps, TextStyle, TouchableWithoutFeedbackProps } from 'react-native'; import { IconsProps } from '../Icon'; export interface SearchInputBarProps extends TextInputProps { /** 容器样式 */ containerStyle?: StyleProp<ViewStyle>; /** 右侧按钮 */ touchProps?: TouchableWithoutFeedbackProps; /** 右侧按钮文案 */ actionName?: string; /** 是否一直显示右侧按钮 null = 永不显示 */ showActionButton?: boolean | null; /** 搜索图标Icon参数 参考Icon组件 */ searchIcon?: IconsProps; /** 点击搜索图标时触发事件 */ onSearch?: Function; /** 清除图标Icon参数 参考Icon组件 */ closeIcon?: IconsProps; /** 点击清除图标时触发事件 */ onClear?: Function; /** 自定义搜索 */ searchRender?: React.ReactNode; /** 输入框TextInput样式 */ inputStyle?: TextStyle; /** loading加载 */ loading?: any; } declare const _default: React.ForwardRefExoticComponent<SearchInputBarProps & React.RefAttributes<unknown>>; export default _default;