Settings Sheet with Icon Picker
Toggles slide on a critically damped spring and recolor their row icons, which jump when switched on. Scrolling blurs the top edge progressively, and App icon pushes a page with parallax. A chosen icon flies to the large preview and lands with a jelly squash.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "settings-sheet-with-icon-picker" to this project. The full source is attached at the end of this prompt. Put the files under components/settings-sheet-with-icon-picker/, 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
- 23 Oct 2026
- License
- Unlimited commercial projects
- Original design
- @aliszu 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 settings sheet and a follow-up page for choosing the app icon. The sheet opens over a grey backdrop with a handle, toggle switches and rows with small icons. Switching a toggle on slides the thumb with a spring, turns the track blue and makes the row icon regain its colour with a jump and a short sway. Scrolling reveals more rows, and tapping the icon row pushes a page with a large preview and a grid of six icons. Choosing one flies its tile into the large preview, which lands with a jelly squash, and the tile fades back into its slot. Use this icon dims, shows a system-style confirmation box with an OK button and then reads In use. A video demo and a live mode are both available.
How it's built
A pure function replays an event log against time and returns the state of the whole screen, so the same core drives the web preview and the React Native component. The component is made of Views and react-native-svg, with small SVG snippets shared as strings, expo-blur for the soft top edge and the dimming, a masked view for progressive blur and linear gradients. The toggle uses a critically damped spring, the preview landing uses a decaying sine on the vertical scale, and the fly-in is a straight-line path with a cubic-bezier curve. Icons are shipped in colour and grey versions because React Native has no grayscale filter.
Good for
- A settings area with toggles that need a clear animated response
- An app icon or theme chooser that previews the selection large
- Confirmation dialogs after a change that affects the whole app
Dependencies
react-native-svgexpo-blurexpo-linear-gradient@react-native-masked-view/masked-viewreact-native