Skip to content
Native Animation
Arc Avatar Switcher animation preview

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

npx nativeanimation add arc-avatar-switcher
Carousel

Arc Avatar Switcher

React Native Avatar Picker with Arc Motion

An arc-shaped artwork picker with scene transitions and configurable items, arc radius, thumbnail size, and selection ring color.

$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

A React Native avatar picker can make a small visual collection feel explorable instead of presenting another flat row. This full-screen selector moves portrait thumbnails along an inertial arc, enlarges the active item at the apex, and expands the selected artwork from that thumbnail in a circular reveal. Use it for profiles, characters, artwork themes, environments, or other image-led choices that benefit from a cinematic transition. Gesture Handler maps drag distance and release velocity to angular movement, and one Reanimated position value drives every thumbnail coordinate, scale, opacity, and layer. Expo Image renders and prefetches neighboring artwork. Configure the starting item, arc geometry, thumbnail size, ring color, font, callbacks, and imperative selection.

When to use it

  • Choose a profile avatar or character.
  • Switch between full-screen artwork themes.
  • Browse a small collection on an inertial arc.
  • Reveal a selected scene from its thumbnail.

Choose a carousel by task

Start with what people need to compare: products, artwork, or neighboring choices. The transition style supports that task.

Compare products and prices · Flip Product Carousel
Edge-hinged card turns keep the product, rolling price, and background color connected.
Browse an immersive image gallery · Blurred Backdrop Carousel
The selected image supplies a blurred backdrop, emphasizing artwork rather than a purchase flow.
Choose artwork for a lock screen · Wallpaper Carousel
Credits move with the image, and holding previews the selected wallpaper at full size.
Keep neighboring options visible · Expanding Strip Carousel
Narrow image strips trade width with the active card; copy appears only when there is room to read it.
Open an editorial card into detail · Vertical Title Cards
A portrait-card carousel expands into a detail header while its vertical title rotates into reading position.
Introduce an art collection · Tilted Marquee Carousel
A moving perspective gallery creates an opening scene rather than a compact value picker.
Select a full-screen artwork scene · Arc Avatar Switcher (this piece)
Portrait thumbnails turn along an arc, then reveal the selected artwork from its thumbnail instead of opening a product card.

An arc-shaped artwork picker with scene transitions and configurable items, arc radius, thumbnail size, and selection ring color.

Why this one

Most full-screen selectors fade between static rows of thumbnails. This one turns the row into an inertial dial: portraits rise, enlarge, and gain a luminous ring at the apex, while the next artwork expands directly from its thumbnail in a cinematic circular reveal. Neighboring full-resolution images are prefetched so remote artwork is ready before selection.

How it works

  1. The component measures its own container, then derives the arc center, radius, thumbnail diameter, and full-screen reveal from those dimensions.
  2. One continuous position shared value drives every thumbnail's angle, coordinates, scale, opacity, and stacking order.
  3. Horizontal dragging maps distance to angular travel. Release velocity feeds a decay animation, then a spring snaps the nearest portrait to the top of the arc.
  4. Selection mounts the new full-screen image inside a circular, clipped layer centered on the chosen thumbnail. The circle grows from 0.15W to 2.4H in 650 ms.
  5. The previous and next remote images are prefetched into Expo Image's memory and disk cache after every selection.

Install

npx expo install expo-image expo-linear-gradient react-native-gesture-handler react-native-reanimated react-native-worklets

Usage

import ArcAvatarSwitcher from './ArcAvatarSwitcher';

export function GalleryScreen() {
  return (
    <ArcAvatarSwitcher
      items={[
        { image: require('./art/drift.jpg'), label: 'Drift' },
        { image: require('./art/bloom.jpg'), label: 'Bloom' },
        { image: require('./art/skyward.jpg'), label: 'Skyward' },
      ]}
    />
  );
}

Customize the dial and control selection from a ref:

import { useRef } from 'react';
import ArcAvatarSwitcher, {
  type ArcAvatarSwitcherRef,
} from './ArcAvatarSwitcher';

export function CuratedGallery() {
  const switcherRef = useRef<ArcAvatarSwitcherRef>(null);

  return (
    <ArcAvatarSwitcher
      ref={switcherRef}
      items={artworks}
      initialIndex={2}
      arcRadius={0.82}
      thumbSize={0.17}
      ringColor="#B7FFDA"
      fontFamily="YourSansMedium"
      onIndexChange={(index) => trackSelection(index)}
    />
  );
}

The forwarded ref exposes select(index).

Props

PropTypeDefaultDescription
itemsArcAvatarItem[]RequiredArtwork and thumbnail choices displayed by the switcher.
initialIndexnumber0Initially selected item.
arcRadiusnumber0.9Arc radius as a fraction of the component width.
thumbSizenumber0.15Thumbnail diameter as a fraction of the component width.
ringColorstring'#FFFFFF'Color of the active thumbnail ring.
fontFamilystringundefinedFont family used by item labels.
onIndexChange(index: number) => voidundefinedCalled after a newly selected artwork finishes revealing.
styleStyleProp<ViewStyle>undefinedOptional style for the outer container.
testIDstringundefinedTest identifier applied to the outer container.

Compatibility

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

Accessibility

Every thumbnail is a labeled button and reports its selected state. The dial also exposes adjustable increment and decrement actions for screen readers, so every drag has a tap and assistive-technology alternative. With reduced motion enabled, inertial travel becomes a short timing transition and the expanding circle becomes a 200 ms full-screen fade.

Customization notes

Movement follows gestures, scroll position, or interruptible spring physics. A global duration is not exposed; reduced-motion fades retain their short fixed timing.

FAQ

Does the avatar picker work in Expo Go?
Yes. Expo Image, Gesture Handler, Reanimated, and Worklets are included with Expo SDK 58 and Expo SDK 57. Each published piece is reviewed on physical iPhone and Android devices with Expo Go before release.
Can I change the arc and selected thumbnail?
Yes. Provide image items and labels, then configure initialIndex, arcRadius, thumbSize, ringColor, fontFamily, callbacks, or the select ref method.
Can people select an avatar without dragging?
Yes. Every thumbnail is a labeled button, and adjustable actions move through the set. Reduce Motion replaces inertia with short timing and the circular reveal with a fade.