From bc4d86eeab01366dd3b9d0edcaa0894b6a1b9fe6 Mon Sep 17 00:00:00 2001 From: Pankaj Pandey Date: Tue, 3 Jul 2018 21:53:43 +0530 Subject: [PATCH] Update index.d.ts (#26978) * Update index.d.ts * Replace any with NativeTouchEvent --- types/react-native/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index a2ff2a3d85..8430b3d127 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -6800,7 +6800,7 @@ export interface BackHandlerStatic { export interface ButtonProps { title: string; - onPress: () => any; + onPress: (ev: NativeSyntheticEvent) => void; color?: string; accessibilityLabel?: string; disabled?: boolean;