mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-11-11 00:56:46 -05:00
20 lines
494 B
TypeScript
20 lines
494 B
TypeScript
// Stolen from https://github.com/necolas/react-native-web/issues/1026#issuecomment-1458279681
|
|
|
|
import {
|
|
type AlertButton,
|
|
type AlertOptions,
|
|
Alert as RNAlert,
|
|
} from "react-native";
|
|
import type { SweetAlertIcon } from "sweetalert2";
|
|
|
|
export interface ExtendedAlertStatic {
|
|
alert: (
|
|
title: string,
|
|
message?: string,
|
|
buttons?: AlertButton[],
|
|
options?: AlertOptions & { icon?: SweetAlertIcon },
|
|
) => void;
|
|
}
|
|
|
|
export const Alert: ExtendedAlertStatic = RNAlert as ExtendedAlertStatic;
|