Back to docs
Component
Notification Toast
Slide toast with status presets and swipe dismissal.
Install
npx shadcn@latest add @native-bits/notification-toastDependencies
react-native-reanimatedreact-native-gesture-handler
feedbacktoastmobile
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| message | string | - | Toast message |
| type | 'success' | 'error' | 'warning' | 'info' | 'info' | Toast variant |
| duration | number | 3000 | Auto dismiss in ms |
Usage
```tsx
import { notification-toast } from '@/components/native-bits/notification-toast'
<NotificationToast type="success" message="Saved successfully" onDismiss={hideToast} />
```Source code
Loading...