react-native-global-modal-2
Version:
🌍 Global modal and callable from anywhere on the app for React Native
13 lines (12 loc) • 379 B
TypeScript
import { MutableRefObject } from "react";
import { ModalData } from "./GlobalModal";
export declare type GlobalModalRef = {
show: (data: ModalData) => void;
hide: () => void;
};
declare const ModalController: {
setModalRef: (ref: MutableRefObject<GlobalModalRef>) => void;
show: (data: ModalData) => void;
hide: () => void;
};
export default ModalController;