react-native-bottomsheet
Version:
True Cross-platform ActionSheet for Android and iOS
24 lines (21 loc) • 521 B
TypeScript
export interface OptionsType {
options?: string[];
title?: string;
dark?: boolean;
cancelButtonIndex?: number;
}
export type ShareWithOptionsType = {
url: string;
subject: string;
message: string;
}
export default class BottomSheet {
static showBottomSheetWithOptions: (
options?: OptionsType,
callback?: (value: number) => void | undefined,
) => void
static showShareBottomSheetWithOptions: (
options: ShareWithOptionsType,
callback: (value: any) => void | undefined,
) => void
}