removeToast

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.

Last updated on by Mateus Andrade