Super Toast

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-toast

Install CocoaPods (iOS)

npx pod-install

Rebuild 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.

App.tsx
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.

On this page