UNPKG

1.07 kBTypeScriptView Raw
1import React from 'react';
2import { SearchBarCommands, SearchBarProps } from 'react-native-screens';
3import { NativeProps as SearchBarNativeProps } from '../fabric/SearchBarNativeComponent';
4export declare const NativeSearchBar: React.ComponentType<SearchBarNativeProps & {
5 ref?: React.RefObject<SearchBarCommands>;
6}> & typeof NativeSearchBarCommands;
7export declare const NativeSearchBarCommands: SearchBarCommandsType;
8type NativeSearchBarRef = React.ElementRef<typeof NativeSearchBar>;
9type SearchBarCommandsType = {
10 blur: (viewRef: NativeSearchBarRef) => void;
11 focus: (viewRef: NativeSearchBarRef) => void;
12 clearText: (viewRef: NativeSearchBarRef) => void;
13 toggleCancelButton: (viewRef: NativeSearchBarRef, flag: boolean) => void;
14 setText: (viewRef: NativeSearchBarRef, text: string) => void;
15 cancelSearch: (viewRef: NativeSearchBarRef) => void;
16};
17declare const _default: React.ForwardRefExoticComponent<Omit<SearchBarProps, "ref"> & React.RefAttributes<SearchBarCommands>>;
18export default _default;
19//# sourceMappingURL=SearchBar.d.ts.map
\No newline at end of file