Features of React Native Toast
masterReact Native Toast is a mobile-optimized toast library inspired by react-hot-toast. Key features include:
- Multiple Toasts: Support for multiple toasts with different options (position, color, type) simultaneously.
- Keyboard Handling: Automatically moves toasts out of the way when the keyboard is opened on iOS and Android.
- Gestures: Supports swipe-to-dismiss functionality.
- Positioning: Supports both
topandbottompositional toasts. - Customization: Allows custom styles, dimensions, duration, and custom components.
- Promise Support: Use
toast.promise(my_promise)to automatically update toast messages based on the promise state (loading, success, or error). - Platform Support: Works on iOS, Android, and Web.
- Native Integration: Supports native modals and provides callbacks for
onPress,onShow, andonHide.