Avatar Picker Bottom Sheet
On a settings screen, tapping the avatar slides up an inset sheet of twelve vector faces while the background dims. Picking one adds a green check badge and cross-fades the profile avatar to the new face. Drawn with react-native-svg; shared core.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "avatar-picker-bottom-sheet" to this project. The full source is attached at the end of this prompt. Put the files under components/avatar-picker-bottom-sheet/, 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 Sep 2026
- License
- Unlimited commercial projects
- Original design
- 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-style screen with a profile card and a menu list. Tapping the avatar opens a bottom sheet that slides up inside the screen, inset slightly from both sides with rounded corners that follow the screen, while the page behind dims. The sheet shows a grid of twelve hand-drawn avatars in three columns. Choosing one marks it with a green check, and the profile avatar swaps with a short cross-fade in which the new face scales in from a smaller size. Tapping the dimmed area or the avatar again closes the sheet with a short ease-in slide and a slower fade of the dim layer. Without input it loops through a demo.
How it's built
The faces and the menu icons are vector drawings in react-native-svg, produced from element lists in a shared JavaScript core, so there are no bitmaps. The same core holds the geometry and a timeline function that takes the time and a list of open, close and select events, which is how the demo and the interactive mode share code. Sheet entry and the dim layer use fitted curves from the reference, and Pressable regions handle taps. A requestAnimationFrame loop advances the frame.
Good for
- A profile photo or avatar chooser in a settings flow
- Any bottom sheet that previews and applies a choice immediately
- A themed picker where the options are small illustrations
Dependencies
react-native-svgreact-native