Type definition
<BreadLoaf /> component to override defaults.
Properties
Position of toasts on screen. Can be
"top" or "bottom".Extra offset from safe area edge (in addition to safe area insets).
Enable right-to-left layout at the code level (reverses icon/text order and text alignment). Only needed when you handle RTL in JavaScript — native RTL (e.g. via
I18nManager.forceRTL) already flips the entire layout automatically, so this option is unnecessary in that case.Whether to show multiple toasts stacked. Default:
true. When false, only one toast shows at a time.Maximum number of toasts visible at once when stacking is enabled. Default:
3.Whether toasts can be dismissed via swipe gesture. Default:
true.Whether to show the close button on toasts. Default:
true. Loading toasts never show close button.Colors for each toast type. Each toast type can have custom
accent and background colors.Custom icons for each toast type. Can be a render function that receives
IconProps.Style overrides for the toast container.
Style overrides for the title text.
Style overrides for the description text.
Default duration in milliseconds for toasts. Default:
4000.When
true, duplicate toasts reset the timer and play a feedback animation. Matches by title+type+description, or by id if provided. Default: true.Usage example
Custom icons example
Related types
- ToastOptions - Per-toast customization options
- CustomContentProps - Props for custom content render functions