ui-kitten-toast
v0.0.2
Published
Toasts with ui-kitten
Downloads
7
Readme
ui-kitten-toast
Toasts in the style of ui-kitten for modern react-native applications.
Install
yarn add ui-kitten-toast
Usage
Add the ToastProvider
in your app main file, but below ui-kittens ApplicationProvider
!
<ApplicationProvider {...eva} theme={eva.light}>
<ToastProvider>
...
</ToastProvider>
</ApplicationProvider>
Use the useToast
hook wherever you want to show a toast.
const { showToast } = useToast();
showToast({ status: 'danger', message: 'Some error :c' });
API
status
: Any status that a ui-kittencard
would accept.message
:string
orReactNode
.
Be aware that this is a very early alpha. Feel free to contribute or suggest more features