UNPKG

@gluestack-ui/alert-dialog

Version:

A universal headless alert-dialog component for React Native, Next.js & React

12 lines (10 loc) 401 B
import React from 'react'; export const AlertDialogContext = React.createContext({ handleClose: (() => {}) as any, initialFocusRef: { current: null } as React.RefObject<any> | undefined, finalFocusRef: { current: null } as React.RefObject<any> | undefined, visible: false as boolean, closeOnOverlayClick: false as boolean, avoidKeyboard: false as boolean, bottomInset: 0 as number, });