mirror of
https://github.com/expo/react-native-action-sheet.git
synced 2026-11-14 19:11:42 -10:00
fix: allow callback to be async (#183)
Co-authored-by: Vincent Pizzo <[email protected]>
This commit is contained in:
1 parent
eb30b1ed14
commit
d0d5182780
1 file changed
+1
-1
+1
-1
@@ -2,7 +2,7 @@ import * as React from 'react';
|
||||
import { TextStyle, ViewStyle } from 'react-native';
|
||||
|
||||
export interface ActionSheetProps {
|
||||
showActionSheetWithOptions: (options: ActionSheetOptions, callback: (i: number) => void) => void;
|
||||
showActionSheetWithOptions: (options: ActionSheetOptions, callback: (i: number) => void | Promise<void>) => void;
|
||||
}
|
||||
|
||||
// for iOS
|
||||
|
||||
Reference in new issue
Block a user