@uiw/react-native
Version:
UIW for React Native
23 lines (22 loc) • 785 B
TypeScript
import React from 'react';
interface SearchBarProps {
onChangeText?: (value: string) => void;
options?: Array<OptionsState>;
onChange?: (value: string | null) => void;
onFocus?: (e: any | string) => void;
onBlur?: (e: any | string) => void;
labelInValue?: Boolean;
disabled?: Boolean;
value?: String;
loading?: Boolean;
placeholder?: String;
extra?: JSX.Element;
showClear?: boolean;
}
interface OptionsState {
label: string;
value: string | number;
}
declare function SearchBar({ onChangeText, options, onChange, labelInValue, disabled, value, onFocus, onBlur, loading, placeholder, extra, showClear, }: SearchBarProps): JSX.Element;
declare const _default: React.MemoExoticComponent<typeof SearchBar>;
export default _default;