fix: use correct callback type allowing for undefined i (#239)

This commit is contained in:
BradByte authored and GitHub committed 2021-09-07 09:25:34 -05:00
1 parent 4d8ed00b66
commit b54b9f16c2
1 file changed
+1 -1
+1 -1
View File
@@ -4,7 +4,7 @@ import { TextStyle, ViewStyle } from 'react-native';
export interface ActionSheetProps {
showActionSheetWithOptions: (
options: ActionSheetOptions,
callback: (i: number) => void | Promise<void>
callback: (i?: number) => void | Promise<void>
) => void;
}