Skip to main content
Version: Next

API Reference

Platform support (current): iOS and Android only. Web is not officially supported yet and may be added in future releases.

This API reference is split into focused contract pages for faster scanning.

Root import (recommended default):

import { ToastProvider, ToastViewport, toast, useToast } from "react-native-toast-system";

Optional subpath imports:

import { ToastProvider } from "react-native-toast-system/providers";
import { ToastHost, ToastViewport } from "react-native-toast-system/components";
import { useToast } from "react-native-toast-system/hooks";
import { toast } from "react-native-toast-system/utils";

Contract Conventions

  • Required: whether the caller must supply the field.
  • Default: runtime default when omitted.
  • none: no implicit value is injected at the API boundary.
  • implementation-defined: behavior exists but is resolved by runtime logic and context.

API Sections

Use src/index.ts as source-of-truth export index for contract verification.