Skip to main content

removeToast

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

All toasts are automatically removed after 1.5s. However, you can manually pop the last toast from screen doing:

import { useToast } from 'react-native-rooster';

const { removeToast } = useToast();

removeToast();

NOTE: You can also change the default time to dismiss by setting timeToDismissoption in setToastConfig, for more information check here.