UNPKG

@gluestack-ui/toast

Version:

A universal headless toast component for React Native, Next.js & React

15 lines (14 loc) 401 B
import { createContext } from 'react'; export const ToastContext = createContext({ toastInfo: {}, setToastInfo: () => { }, setToast: () => '', removeToast: () => { }, hideAll: () => { }, isActive: () => false, visibleToasts: {}, setVisibleToasts: () => { }, hideToast: () => { }, AnimationWrapper: { current: null }, AnimatePresence: { current: null }, });