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.

42 lines
1.1 KiB

import { Component } from 'react';
import { TextInput } from 'react-native';
import { InputProps } from '../Input';
import { SearchBarIosProps } from './types';
export type { SearchBarIosProps };
declare type SearchBarState = {
hasFocus: boolean;
isEmpty: boolean;
cancelButtonWidth: number | null;
};
export declare class SearchBarIOS extends Component<SearchBarIosProps, SearchBarState> {
input: TextInput;
static defaultProps: {
value: string;
cancelButtonTitle: string;
loadingProps: {};
cancelButtonProps: {};
showLoading: boolean;
onClear: () => any;
onCancel: () => any;
onFocus: () => any;
onBlur: () => any;
onChangeText: () => any;
searchIcon: {
name: string;
};
clearIcon: {
name: string;
};
showCancel: boolean;
};
constructor(props: SearchBarIosProps);
focus: () => void;
blur: () => void;
clear: () => void;
cancel: () => void;
onFocus: InputProps['onFocus'];
onBlur: InputProps['onBlur'];
onChangeText: (text: string) => void;
render(): JSX.Element;
}