From 1cd041a2e8bcd910ec011b51953b34a8a2bb6920 Mon Sep 17 00:00:00 2001 From: Brad Bumbalough Date: Tue, 7 Sep 2021 09:22:40 -0500 Subject: [PATCH] fix: use correct callback type --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index e9a3798..97cb671 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,7 +4,7 @@ import { TextStyle, ViewStyle } from 'react-native'; export interface ActionSheetProps { showActionSheetWithOptions: ( options: ActionSheetOptions, - callback: (i: number) => void | Promise + callback: (i?: number) => void | Promise ) => void; }