From d45459cd371e74c0855c4908bfdb433d32d780cc Mon Sep 17 00:00:00 2001 From: Flavio Silva Date: Mon, 18 Feb 2019 17:14:04 -0300 Subject: [PATCH 1/3] [ts] Fix ResponderProps interface: change pointerEvents to have the same type as in ReactNative.ViewProps, i.e., a set of allowed strings, not a function. --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index ec02938e..9e65eb5b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -80,7 +80,7 @@ export interface TouchableProps { } export interface ResponderProps extends ReactNative.GestureResponderHandlers { - pointerEvents?: (event: any) => any, + pointerEvents?: "box-none" | "none" | "box-only" | "auto", } // rgba values inside range 0 to 1 inclusive From 6b3166dc17367bdf5beb7250cbc7b4d78406362b Mon Sep 17 00:00:00 2001 From: Flavio Silva Date: Mon, 18 Feb 2019 17:21:08 -0300 Subject: [PATCH 2/3] [ts] Fix SvgProps interface: make it extends GProps since also accepts all those props. --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 9e65eb5b..696ab79c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -306,7 +306,7 @@ export interface StopProps { } export const Stop: React.ComponentClass; -export interface SvgProps extends ReactNative.ViewProperties { +export interface SvgProps extends GProps, ReactNative.ViewProperties { width?: NumberProp, height?: NumberProp, viewBox?: string, From ffc3c19c0c1d31923ff711bf14545ce67d533729 Mon Sep 17 00:00:00 2001 From: Flavio Silva Date: Mon, 18 Feb 2019 18:00:55 -0300 Subject: [PATCH 3/3] [ts] Fix SvgProps: add color and title. --- index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.d.ts b/index.d.ts index 696ab79c..0dbc14fd 100644 --- a/index.d.ts +++ b/index.d.ts @@ -311,6 +311,8 @@ export interface SvgProps extends GProps, ReactNative.ViewProperties { height?: NumberProp, viewBox?: string, preserveAspectRatio?: string, + color?: int32ARGBColor | rgbaArray | string, + title?: string, } // Svg is both regular and default exported