import { Toast, useToastController, useToastState } from '@tamagui/toast' import { Button, H4, XStack, YStack, isWeb } from 'tamagui' export function CurrentToast() { const currentToast = useToastState() if (!currentToast || currentToast.isHandledNatively) return null return ( {currentToast.title} {!!currentToast.message && ( {currentToast.message} )} ) } export function ToastControl() { const toast = useToastController() return (

Toast demo

) }