You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A modern, highly customizable toast notification library for React Native with full TypeScript support. Inspired by popular toast libraries like Sonner and react-native-toast-message, this library provides an elegant and flexible way to display notifications in your React Native applications.
9
10
@@ -20,6 +21,15 @@ A modern, highly customizable toast notification library for React Native with f
20
21
- 📦 **Easy to Use** - Simple API similar to popular web toast libraries
21
22
- 🔧 **Highly Configurable** - Global and per-toast configuration options
22
23
- 🆕 **Latest React Native** - Compatible with React 19.2 and React Native 0.83
24
+
- 🏗️ **Expo Compatible** - Works with Expo Go and prebuilds out of the box
25
+
26
+
## 📱 Expo Support
27
+
28
+
This library is fully compatible with Expo. It uses standard React Native APIs (`Animated`, `PanResponder`) and requires no native code linking. You can use it directly in:
|`config`|`ToastConfig`|`undefined`| Map of toast types to render functions |
114
+
|`topOffset`|`number`|`40`| Top offset for positioning (when position is 'top') |
115
+
|`bottomOffset`|`number`|`40`| Bottom offset for positioning (when position is 'bottom') |
106
116
107
117
### Toast Methods
108
118
@@ -187,7 +197,54 @@ Toast.hide();
187
197
|`swipeable`|`boolean`|`true`| Enable swipe to dismiss |
188
198
|`props`|`Record<string, any>`|`undefined`| Custom props for advanced use cases |
189
199
190
-
## 🎨 Customization Examples
200
+
## 🎨 Advanced Customization (Sonner-style)
201
+
202
+
Inspired by libraries like [Sonner](https://sonner.emilkowal.ski/), this library gives you complete control over the toast's rendering, allowing you to build any design you want.
203
+
204
+
### 1. Global Configuration
205
+
206
+
Define your custom types once in `ToastContainer` and use them everywhere.
0 commit comments