diff --git a/native/flow-typed/npm/@expo/react-native-action-sheet_vx.x.x.js b/native/flow-typed/npm/@expo/react-native-action-sheet_vx.x.x.js new file mode 100644 --- /dev/null +++ b/native/flow-typed/npm/@expo/react-native-action-sheet_vx.x.x.js @@ -0,0 +1,64 @@ +// flow-typed signature: d46be163849e39e248d58b8d54ae8f16 +// flow-typed version: <>/@expo/react-native-action-sheet_v3.14.0/flow_v0.158.0 + +declare module '@expo/react-native-action-sheet' { + // This was taken from the flow typed library definitions of bottom-tabs_v6 + declare type StyleObj = + | null + | void + | number + | false + | '' + | $ReadOnlyArray + | { [name: string]: any, ... }; + + declare type ViewStyleProp = StyleObj; + declare type TextStyleProp = StyleObj; + + declare export type ActionSheetIOSOptions = {| + +options: $ReadOnlyArray, + +title?: string, + +message?: string, + +tintColor?: string, + +cancelButtonIndex?: number, + +destructiveButtonIndex?: number | $ReadOnlyArray, + +anchor?: number, + +userInterfaceStyle?: 'light' | 'dark', + +disabledButtonIndices?: $ReadOnlyArray, + |}; + + declare export type ActionSheetOptions = {| + ...ActionSheetIOSOptions, + +icons?: $ReadOnlyArray, + +tintIcons?: boolean, + +textStyle?: TextStyleProp, + +titleTextStyle?: TextStyleProp, + +messageTextStyle?: TextStyleProp, + +autoFocus?: boolean, + +showSeparators?: boolean, + +containerStyle?: ViewStyleProp, + +separatorStyle?: ViewStyleProp, + +useModal?: boolean, + +destructiveColor?: string, + |}; + + declare export type ShowActionSheetWithOptions = ( + options: ActionSheetOptions, + callback: (i?: number) => void | Promise, + ) => void; + + declare export type ActionSheetProps = { + +showActionSheetWithOptions: ShowActionSheetWithOptions, + }; + + declare export function useActionSheet(): ActionSheetProps; + + declare export type ActionSheetProviderProps = {| + +children: React$Node, + +useNativeDriver?: boolean, + +useCustomActionSheet?: boolean, + |}; + + declare export class ActionSheetProvider + extends React$Component {} +}