Skip to content

Commit

Permalink
fix: Searchbar TS types (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
gawrysiak authored and Trancever committed Mar 21, 2019
1 parent 0c5371a commit 1a4af74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion typings/components/Searchbar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ export interface SearchbarProps extends TextInputProps {
onChangeText?: (query: string) => void;
}

export declare class Searchbar extends React.Component<SearchbarProps> {}
export declare class Searchbar extends React.Component<SearchbarProps> {
isFocused: () => boolean;
clear: () => void;
focus: () => void;
blur: () => void;
}
4 changes: 2 additions & 2 deletions typings/components/TextInput.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ export interface RenderProps extends NativeTextInputProps {
export declare class TextInput extends React.Component<TextInputProps> {
isFocused: () => boolean;
clear: () => void;
focus(): void;
blur(): void;
focus: () => void;
blur: () => void;
}

0 comments on commit 1a4af74

Please sign in to comment.