dissolve
An animation library for React Native. Turn any view into dust: a Skia snapshot, cut into grains,
animated by Reanimated 4 on the UI thread. Its ready-made components also run on the web, as React
components with the same props.

Put a ref on any component, call dissolve(), and it dissolves, melts, peels or rebuilds itself.
It works on any view, not a specific widget. iOS and Android, works with Expo (runs in Expo Go).
How it works: the view is snapshotted with Skia makeImageFromView, cut into grains drawn with one
<Atlas>, and animated on the UI thread (Reanimated 4, react-native-worklets). Every grain is
computed in a single reaction pass per frame, idle grains are skipped, and grain counts are capped
at 6000 per burst.
Install
npx expo install dissolve-ui @shopify/react-native-skia react-native-reanimated react-native-worklets react-native-gesture-handler expo-haptics
npx expo install picks the versions that match your Expo SDK. The demo app in this repo imports
the source directly through the @/dissolve path alias.
Supported: Expo SDK 57 or 58. CI typechecks the engine and every component against both.
| Expo SDK 57 | Expo SDK 58 |
|---|
| React Native | 0.86 | 0.88 |
| React | 19.2 | 19.3 |
@shopify/react-native-skia | 2.6 | 2.14 |
react-native-reanimated | 4.5 | 4.7 |
react-native-worklets | 0.10 | 0.13 |
react-native-gesture-handler | 2.32 | 3.3 |
Expo's Babel preset already adds the worklets plugin; a bare React Native app needs
'react-native-worklets/plugin' in babel.config.js.
Expo SDK 58
- Upgrade for the Skia leak fix. SDK 58 ships
@shopify/react-native-skia 2.14. Skia 2.7 fixed
a leak on iOS where the images makeImageFromView returns stayed in memory after dispose().
Every dissolve effect starts with that snapshot, so on SDK 57 (Skia 2.6) iOS memory grows with
each effect played.
- iOS 27 scene life cycle. iOS 27 requires the UIKit scene based life cycle. A fresh
npx expo prebuild on SDK 58 generates SceneDelegate.swift, and the window is created there,
not in AppDelegate. If you keep an ios/ folder from SDK 57 or customize AppDelegate.swift,
delete ios/ and prebuild again (or follow https://expo.fyi/ios-scene-lifecycle). The SDK 57
prebuild template has no scene delegate, so an SDK 57 app built with the iOS 27 SDK hits this:
move to SDK 58 rather than patching it.
- The Skia package keeps its name: SDK 58 still bundles
@shopify/react-native-skia, which the
engine and components import. Upstream also publishes it as react-native-skia (2.15 and 3.x);
dissolve does not support that name yet, so install @shopify/react-native-skia.
Setup
Wrap the app once in <DissolveProvider>, above the navigator so effects survive a screen pop
(see app/_layout.tsx). The provider renders a full screen, pointerEvents="none" overlay where
grains are drawn, and skips effects when reduced motion is on.
// app/_layout.tsx
import { Stack } from 'expo-router';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { DissolveProvider } from '@/dissolve';
export default function Layout() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<DissolveProvider>
<Stack />
</DissolveProvider>
</GestureHandlerRootView>
);
}
Quick start
import { Pressable, View } from 'react-native';
import { useDissolve } from '@/dissolve';
function Row({ item, onRemove }) {
const { ref, dissolving, dissolve } = useDissolve();
return (
<Pressable
onPress={async () => {
await dissolve({ preset: 'sand' });
onRemove(item.id); // the space can be reclaimed
}}
>
<View ref={ref} collapsable={false} style={{ opacity: dissolving ? 0 : 1 }}>
{/* row content */}
</View>
</Pressable>
);
}
Hide the original with opacity: dissolving ? 0 : 1 and remove it from state after the await.
Variants
Common options for every atlas preset: origin ('left' | 'right' | 'top' | 'bottom' | 'center' | { x, y }),
direction ('out' | 'in', any exit plays backwards as an entrance), grain, duration, haptics,
field: 'cascade' with rows, and free knobs n.
Classic presets