fix: allow callback to be async (#183)

Co-authored-by: Vincent Pizzo <[email protected]>
This commit is contained in:
Vincent PizzoandVincent Pizzo authored and GitHub committed 2020-12-02 16:27:15 -06:00
1 parent eb30b1ed14
commit d0d5182780
1 file changed
+1 -1
+1 -1
View File
@@ -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