Skip to content
Native Animation
Record Stack Picker animation preview

This preview uses fictional demo content. See the props below for the customization options available in this component.

npx nativeanimation add record-stack-picker
Picker

Record Stack Picker

React Native Stacked Card Picker

A record picker with a perspective sleeve stack and vinyl-to-player transition, with configurable records, copy, accent color, and fonts.

$9 for this animation

Add to your project

Copy the component and its assets into your app with the Native Animation CLI, or paste the agent prompt into Claude Code, Codex or Cursor once the MCP server is connected.

About this animation

React Native stacked cards can turn a small collection into a tactile picker without hiding every option behind a flat list. This component arranges record sleeves in a vertical perspective stack, lifts the centered card into a front-facing view, and reveals a spinning disc behind it. Use the pattern for albums, collectible cards, artwork, saved items, or any visual selection where opening the choice should feel consequential. Gesture Handler drives direct vertical movement with decay and edge resistance, while one continuous Reanimated value controls position, tilt, scale, veil, visibility, and layer order. Expo Image handles the covers. Provide your own records, copy, colors, and fonts, listen for open and dismiss events, or sequence selection through the imperative API.

When to use it

  • Browse albums or collectible artwork.
  • Choose an item from a perspective stack.
  • Open the centered card into a detailed state.
  • Sequence a picker from imperative controls.

A record picker with a perspective sleeve stack and vinyl-to-player transition, with configurable records, copy, accent color, and fonts.

Why this one

Typical cover pickers stop at a flat carousel, so the interaction never feels connected to the music format. This version makes the object and action legible at a glance: five square sleeves sit in a deep record-store crate, the front sleeve tips away under a horizontal swipe, and the next sleeve rises into its place. Tapping the front sleeve physically pulls out a grooved vinyl, rotates its specular highlight and color-matched center label, and materializes the selected track in a focused player below.

How it works

  1. The component measures its own container and derives the sleeve, crate, stage, and type layout from that size.
  2. One continuous position shared value drives every sleeve's perspective, overlap, tilt, scale, opacity, and layer order.
  3. Horizontal dragging updates that position on the UI thread, applies progressive edge resistance, projects release velocity, and springs to the nearest sleeve.
  4. A second shared progress extracts only the centered vinyl while lowering and scaling its sleeve, so the two objects remain physically connected.
  5. Native vinyl grooves and the rotating specular material are drawn with Skia; web uses the same layered visual treatment without loading CanvasKit eagerly.
  6. The forwarded ref exposes browsing, extraction, closing, and reset controls for product tours and autoplay demos.

The crate backdrop stays behind the stack. There is no decorative front rail covering the sleeve artwork or extracted vinyl.

Install

npx expo install @expo/vector-icons @shopify/react-native-skia expo-image expo-linear-gradient react-native-gesture-handler react-native-reanimated react-native-worklets

Usage

import RecordStackPicker from './RecordStackPicker';

export function MusicScreen() {
  return (
    <RecordStackPicker
      records={[
        {
          cover: require('./assets/afterglow.jpg'),
          title: 'Afterglow',
          artist: 'Mira Vale',
          accentColor: '#E98573',
        },
      ]}
    />
  );
}

Customize the product copy, typography, colors, and callbacks:

import { useRef } from 'react';
import RecordStackPicker, {
  type RecordStackPickerRef,
} from './RecordStackPicker';

export function ListeningRoom() {
  const pickerRef = useRef<RecordStackPickerRef>(null);

  return (
    <RecordStackPicker
      ref={pickerRef}
      records={collection}
      brandName="Aurora"
      title="Pick tonight's record"
      accentColor="#F09B73"
      backgroundColor="#160F14"
      fontFamily="Geist-Regular"
      titleFontFamily="InstrumentSerif-Regular"
      onOpen={(index) => queuePreview(index)}
      onPlayingChange={(playing) => setPreviewPlaying(playing)}
    />
  );
}

The forwarded ref exposes next(), previous(), scrollTo(index), open(), close(), and reset().

Props

PropTypeDefaultDescription
recordsRecordItem[]RequiredFive or more records shown in the sleeve stack.
brandNamestring'Music library'Product name shown in the header.
titlestring"Pick tonight's record"Editorial heading.
eyebrowstring'CURATED FOR YOU'Short collection label.
accentColorstring'#F09B73'Primary accent color.
backgroundColorstring'#160F14'Main surface color.
fontFamilystringundefinedFont family for interface copy.
titleFontFamilystringundefinedFont family for the editorial heading.
onIndexChange(index: number) => voidundefinedCalled when the centered sleeve changes.
onOpen(index: number) => voidundefinedCalled when a record is extracted.
onPlayingChange(playing: boolean) => voidundefinedCalled when playback changes.
accessibilityLabelstring'Record picker'Accessible label for the picker.
styleStyleProp<ViewStyle>undefinedOptional style for the outer container.
testIDstringundefinedTest identifier for the outer container.
durationnumber2100Playing vinyl rotation cycle in milliseconds. Spring physics and reduced-motion timing are unchanged.

Compatibility

  • Expo SDK 58
  • React Native 0.88
  • Reanimated 4.7, Worklets 0.13, and Skia 2.14
  • iOS: supported
  • Android: supported
  • Web: supported
  • Works in Expo Go because its native dependencies are included in the SDK

Accessibility

The sleeve stack exposes adjustable increment and decrement actions plus an activate action for extraction. Every sleeve and the player have descriptive button labels and touch targets of at least 44 points. Reduced Motion replaces travel, springs, vinyl rotation, and perspective changes with short state fades while keeping every interaction available by touch.

FAQ

Does the stacked card picker work in Expo Go?
Yes. Expo Image, Gesture Handler, Reanimated, and Worklets are included with Expo SDK 58 and Expo SDK 57. It supports iOS, Android, and web. Each published piece is reviewed on physical iPhone and Android devices with Expo Go before release.
Can I use it for something other than records?
The public item model is record-oriented, with cover, title, artist, and optional disc accents. Its colors, caption, fonts, callbacks, and open, close, and scrollTo controls are configurable.
How is the stack exposed to assistive technology?
It supports adjustable actions and announces the centered title and artist; every sleeve is also a labeled button. Reduce Motion removes the drop and rotation and uses short fades.