You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.0 KiB
32 lines
1.0 KiB
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;
|