React Native Cube Pager for Expo

Swipeable pages that turn like the faces of a cube, with flick momentum.

ProiOS · Android · Expo Go
9:41

Props

PropTypeDefault
children

One child per page.

ReactNode—
height

Page height.

number260
effect

Outside of a cube, its inner walls, or each page spinning in place.

"cube" | "inside" | "flip""cube"
index

Controlled page.

number—
defaultIndex

Uncontrolled initial page.

number0
onIndexChange

Fires when the page changes.

(index: number) => void—
pagination

Dots under the pager.

booleantrue
shade

Darken faces as they turn away.

booleantrue
accent

Active dot colour.

stringtheme foreground
radius

Corner radius of the pages.

number20
disabled

Turn swiping off (dots and a controlled index still work).

booleanfalse
style

Style for the root view.

StyleProp<ViewStyle>—
className

Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.

string—

Customization

You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.

Design theme

Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).

Variants

Use the variant chips on the preview to switch examples; each maps to a demo you can copy from the Code tab.

Style props

React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).

accent
string · default theme foregroundActive dot colour.
style
StyleProp<ViewStyle>Style for the root view.
className
stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.

Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.

Behaviour & accessibility

Touch
Pages follow your finger. A quick flick or a drag past 35% turns the page, and the first and last pages rubber-band.
Motion
Pages rotate around their shared edge in 3D (cube, inside or flip) and darken as they turn away when shade is on.
Screen readers
The pager is adjustable with a "2 / 5" value and increment and decrement actions. Off-screen pages are hidden and dots are buttons.

Source

FAQ

How do I make a 3D cube pager in React Native?
Use ExpoKit's Cube Pager, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made 3D cube pager into your Expo or React Native app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.
Does Cube Pager work in Expo Go?
Yes. Cube Pager runs in Expo Go on iOS and Android with no development build.
How do I add Cube Pager to my Expo app?
With ExpoKit Pro, add it with the ExpoKit CLI: it copies the component's source into your app, so the code is yours to change. The install command is on this page for Pro members.
Is Cube Pager free?
Cube Pager is part of ExpoKit Pro. With a Pro plan, log the CLI in once (npx @expokit/cli@latest login) and it installs the full source into your app.