react-native-elements
Version:
React Native Elements & UI Toolkit
32 lines (31 loc) • 1.07 kB
TypeScript
import React from 'react';
import { TextInput, TextInputProps } from 'react-native';
import { SearchBarBaseProps } from './SearchBar';
import { ThemeProps } from '../config';
export declare type SearchBarDefaultProps = typeof SearchBar.defaultProps & SearchBarBaseProps & TextInputProps;
declare type SearchBarState = {
isEmpty: boolean;
};
declare class SearchBar extends React.Component<SearchBarDefaultProps & Partial<ThemeProps<SearchBarDefaultProps>>, SearchBarState> {
input: TextInput;
static defaultProps: {
value: string;
loadingProps: {};
showLoading: boolean;
lightTheme: boolean;
round: boolean;
onClear: () => any;
onFocus: () => any;
onBlur: () => any;
onChangeText: () => any;
};
constructor(props: SearchBarDefaultProps);
focus: () => void;
blur: () => void;
clear: () => void;
onFocus: TextInputProps['onFocus'];
onBlur: TextInputProps['onBlur'];
onChangeText: (text: string) => void;
render(): JSX.Element;
}
export default SearchBar;