Particle Icon Morph Agent Selector
An open palm sits in a slanted light band with an icon made of about 1000 glittering particles above it. Switching tabs scatters them and a new icon sweeps in from the lower left. SkSL light band, Skia drawAtlas particles.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "particle-icon-morph-agent-selector" to this project. The full source is attached at the end of this prompt. Put the files under components/particle-icon-morph-agent-selector/, install the listed dependencies with `npx expo install`, and render it on a route I can open. Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply. === Source files are attached here for paid plans ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 4 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @agispas on X
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
A dark onboarding page for choosing a specialised assistant. Above a hand-shaped base, a sparkling particle icon floats: a plane for travel, a wallet for money, a house for family, in icy blue, warm gold and soft purple-pink. Picking another tab sends the particles from the old icon to the new one, where they re-form, while a pill slides to the new tab and its label picks up a colour. A slanted beam of light crosses the screen, and the icon tints the air around it. Tapping the active tab opens a card with a counter, a close button, a description and three bullet points, plus a Choose button. Choosing opens a confirmation page with a check and a Choose another link.
How it's built
A shared core holds the measured layout, the agent table, a state machine with select, next, previous, open, close, confirm and back, a demo script, UI animation values and the particles. There are a thousand particles, sampled along each icon outline with some scatter. They fly on cubic Bezier paths with randomised start times and a short sweep, and a mid-flight switch restarts from the current positions. Skia draws them from an atlas with small bright dots and larger soft glows, plus a shader for the beam. React Native records a Skia picture per frame, uses views and react-native-svg for the interface and a PanResponder for horizontal swiping. Fonts are passed to expo-font.
Good for
- Choosing a persona, assistant or plan on an onboarding screen
- Category pickers where one hero icon should transform between options
- A reference for particle morphing between vector shapes in Skia
Dependencies
@shopify/react-native-skiareact-native-svgreact-native