@rneui/base
Version:
Cross Platform React Native UI Toolkit
32 lines (31 loc) • 994 B
TypeScript
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;
}