@uiw/react-native
Version:
UIW for React Native
27 lines (26 loc) • 1.11 kB
TypeScript
import React from 'react';
import { StyleProp, ViewStyle, ColorValue } from 'react-native';
import { SearchInputBarProps } from '../SearchInputBar';
interface SearchBarProps extends Omit<SearchInputBarProps, 'onChange' | 'value'> {
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 | OptionsState;
loading?: Boolean;
placeholder?: string;
extra?: JSX.Element;
showClear?: boolean;
contentStyle?: StyleProp<ViewStyle>;
placeholderColor?: ColorValue;
}
interface OptionsState {
label: string;
value: string | number;
}
declare function SearchBar({ onChangeText, options, onChange, labelInValue, disabled, value, onFocus, onBlur, loading, placeholder, extra, showClear, contentStyle, placeholderColor, ...searchInputBarProps }: SearchBarProps): JSX.Element;
declare const _default: React.MemoExoticComponent<typeof SearchBar>;
export default _default;