Clerk Toast with Reanimated
Tuesday, September 3, 2024
demos
clerk-toast
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A sophisticated toast notification system inspired by Clerk's design, featuring stacked notifications with smooth animations and gesture interactions. Perfect for displaying multiple notifications in an organized and visually appealing way.
What's This About?
This component implements a stacked toast notification system where multiple notifications can be displayed simultaneously. Each toast can be interacted with through gestures, and the stack automatically manages the layout and animations of multiple notifications.
Technical Implementation
The component implements:
Stacked notification management
Gesture-based interactions
Smooth enter/exit animations
Safe area handling
Automatic toast queuing
Scale animations on press
Custom styling options
Usage
// Setup the provider
<StackedToastProvider>
<App />
</StackedToastProvider>;
// Using the toast hook
const { showToast } = useStackedToast();
// Show a toast
showToast({
title: 'Notification Title',
message: 'Your notification message here',
});
Unlock the beauty of React Native animations
Learn Reanimated, Gesture Handler & Skia with Reanimate.dev
Feedback on Clerk Toast
Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback