From 1a4af746d29f0c748935d24a576f2a17026a9ead Mon Sep 17 00:00:00 2001 From: Grzegorz Gawrysiak Date: Thu, 21 Mar 2019 15:53:03 +0100 Subject: [PATCH] fix: Searchbar TS types (#943) --- typings/components/Searchbar.d.ts | 7 ++++++- typings/components/TextInput.d.ts | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/typings/components/Searchbar.d.ts b/typings/components/Searchbar.d.ts index 77bfb3f6e3..c6659b7de2 100644 --- a/typings/components/Searchbar.d.ts +++ b/typings/components/Searchbar.d.ts @@ -9,4 +9,9 @@ export interface SearchbarProps extends TextInputProps { onChangeText?: (query: string) => void; } -export declare class Searchbar extends React.Component {} +export declare class Searchbar extends React.Component { + isFocused: () => boolean; + clear: () => void; + focus: () => void; + blur: () => void; +} diff --git a/typings/components/TextInput.d.ts b/typings/components/TextInput.d.ts index e4ae57f4fb..5cca1e0e54 100644 --- a/typings/components/TextInput.d.ts +++ b/typings/components/TextInput.d.ts @@ -39,6 +39,6 @@ export interface RenderProps extends NativeTextInputProps { export declare class TextInput extends React.Component { isFocused: () => boolean; clear: () => void; - focus(): void; - blur(): void; + focus: () => void; + blur: () => void; }