1 | import React from 'react';
|
2 | import { SearchBarCommands, SearchBarProps } from 'react-native-screens';
|
3 | import { NativeProps as SearchBarNativeProps } from '../fabric/SearchBarNativeComponent';
|
4 | export declare const NativeSearchBar: React.ComponentType<SearchBarNativeProps & {
|
5 | ref?: React.RefObject<SearchBarCommands>;
|
6 | }> & typeof NativeSearchBarCommands;
|
7 | export declare const NativeSearchBarCommands: SearchBarCommandsType;
|
8 | type NativeSearchBarRef = React.ElementRef<typeof NativeSearchBar>;
|
9 | type 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 | };
|
17 | declare const _default: React.ForwardRefExoticComponent<Omit<SearchBarProps, "ref"> & React.RefAttributes<SearchBarCommands>>;
|
18 | export default _default;
|
19 |
|
\ | No newline at end of file |