Installation
Install the package, link CocoaPods, and show your first toast.
Install the package
Super Toast has no dependencies beyond React Native. These docs target version 0.2.1.
npm install react-native-super-toastInstall CocoaPods (iOS)
npx pod-installRebuild the native app afterwards. Expo users need a development build; Expo Go does not include the native module.
Mount ToastHost
Render ToastHost once, near the root of the app.
import { ToastHost } from 'react-native-super-toast';
export default function App() {
return (
<>
<YourApp />
<ToastHost />
</>
);
}Show a toast
import { toast } from 'react-native-super-toast';
toast('Event has been created');Next, explore variants, actions, and promises.