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
994 B

import { Component } from 'react';
import { TextInput, EmitterSubscription } from 'react-native';
import { InputProps } from '../Input';
import { SearchBarAndroidProps } from './types';
export type { SearchBarAndroidProps };
declare type SearchBarState = {
hasFocus: boolean;
isEmpty: boolean;
};
export declare class SearchBarAndroid extends Component<SearchBarAndroidProps, SearchBarState> {
input: TextInput;
static defaultProps: {
onClear: () => any;
onCancel: () => any;
onFocus: () => any;
onBlur: () => any;
onChangeText: () => any;
};
keyboardListener: EmitterSubscription;
focus: () => void;
blur: () => void;
clear: () => void;
cancel: () => void;
onFocus: InputProps['onFocus'];
onBlur: InputProps['onBlur'];
onChangeText: (text: string) => void;
constructor(props: SearchBarAndroidProps);
_keyboardDidHide: () => void;
componentWillUnmount(): void;
render(): JSX.Element;
}