Music App Kit with Spring Segmented Tabs
A dark music home with quick cards and a glass segmented pill whose white slider moves on a critically damped spring, each label blending color by coverage. Three tabs cross-fade with a 14pt shift into swipeable lists, with layered blur and a mini player.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "music-app-kit-spring-segmented-tabs" to this project. The full source is attached at the end of this prompt. Put the files under components/music-app-kit-spring-segmented-tabs/, 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
- 17 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @keremcesme 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 music home screen with a large Home title, an avatar, and a grid of eight translucent quick-access cards. Below it sits a frosted segmented pill with three tabs. A white slider moves between them on a spring, and each label shifts between grey-white and black according to how much of it the slider covers. The tab content cross-fades with a small sideways shift: a horizontal row of gradient playlist cards, a row of large cover cards under album, playlist and single labels, and a grid of white radio logos. Content near the bottom blurs progressively under a dark frosted tab bar and a light mini player.
How it's built
A shared core computes each frame from a timeline of taps. The slider is a critically damped spring, outgoing content fades first and the incoming layer follows shortly after. The React Native component uses expo-blur for the frosted layers, expo-linear-gradient and masked views for the gradient fades and the progressive blur at the bottom, and react-native-svg for the logos and icons. A requestAnimationFrame loop advances the animation and ScrollView handles scrolling.
Good for
- A music, podcast or radio app home screen with segmented browsing
- Any frosted segmented control whose label colors respond to the slider position
- Bottom-of-screen blur fades behind a floating tab bar and mini player
Dependencies
@react-native-masked-view/masked-viewexpo-blurexpo-fontexpo-linear-gradientreact-native-svgreact-native