From 9ab3afa064b69ff1021acd80d47d9622976615cf Mon Sep 17 00:00:00 2001 From: Kyle Roach Date: Mon, 3 Jul 2017 12:02:07 -0400 Subject: [PATCH] [react-native] Add state type to React.Component generic --- types/react-native/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index e1cc0daa3c..5a3df6dcb7 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -336,7 +336,7 @@ export interface NativeMethodsMixinStatic { blur(): void; refs: { - [key: string]: React.Component + [key: string]: React.Component }; } @@ -8858,7 +8858,7 @@ export function requireNativeComponent

( extraConfig?: {nativeOnly?: any} ): React.ComponentClass

; -export function findNodeHandle(componentOrHandle: null | number | React.Component | React.ComponentClass): null | number; +export function findNodeHandle(componentOrHandle: null | number | React.Component | React.ComponentClass): null | number; export function processColor(color: any): number;