@kirz/react-native-toolkit
Version:
Toolkit to speed up React Native development
9 lines • 457 B
TypeScript
import React, { PropsWithChildren } from 'react';
export type AlertsContextType = {
showAlert: (name: string, props?: any) => Promise<any>;
hideAlert: (name: string) => Promise<void>;
};
export type AlertsProviderProps = PropsWithChildren<object>;
export declare const AlertsContext: React.Context<AlertsContextType>;
export declare function AlertsProvider({ children }: AlertsProviderProps): JSX.Element;
//# sourceMappingURL=AlertsContext.d.ts.map