Effects
16 effects of the dissolve engine for React Native. Put a ref on any view, call dissolve(), and it dissolves, melts, peels or rebuilds itself. Every effect runs on the UI thread with Reanimated 4.
npx expo install dissolve-ui @shopify/react-native-skia react-native-reanimated react-native-worklets react-native-gesture-handler expo-hapticsExits
- Dust: Any view snapshots into grains that drift away on the wind, left edge first.
- Sand: Grains pour straight down with gravity and slide out of frame.
- Ember: Burns from the edge and rises as sparks tinted by the view itself.
- Pixel: A blocky, stepped collapse for retro and game UIs.
- Vortex: Grains spiral into the center and vanish.
- Shatter: Glass shards break away from the point of impact.
- Stream: The view flies into a target, like a file dropped in the trash.
Entrances
- Gather: Grains converge from a loose cloud into the view.
- Rain: Grains fall and settle, bottom row first.
- Print: The view is printed in, line by line.
Gestures
- Snap: Bursts outward from the exact point you touched.
- Fling: Follows the velocity of the swipe that threw it away.
- Charge: Hold to heat the view up, it bursts at full charge.
Special
- Morph: View A breaks down and rebuilds itself as view B.
Casual
- Peel: Peels off from the corner like a sticker, then flies away.
- Melt: Melts down in drips, like wax under a lamp.
dissolve is MIT licensed. Source on GitHub, package on npm. For AI agents: llms.txt.