Toast
Setup
Make sure to use ThemeProvider
at the top-level component.
<ThemeProvider>{children}</ThemeProvider>
Usage
Paramount exposes a convenience hook useToast
you can use to create toasts from anywhere in the application.
Open toast
Toast Options
id
String
required
onRemove
() => void
required
duration
Number | undefined
3000
overrides
Partial<{ root: overridewithstyle<alertbaseprops, rootprops, styleprop<viewstyle>>; leftwrapper: overridewithstyle<alertbaseprops, leftwrapperprops, styleprop<viewstyle>>; ... 4 more ...; action: overridebase<...>; }> | undefined
title
Optionalstring
description
Optionalstring
intent
"danger" | "info" | "success" | "warning" | undefined
info
testID
String | undefined