Props
| Prop | Type | Default |
|---|---|---|
| children One child per page. | ReactNode | — |
| height Page height. | number | 260 |
| 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. | number | 0 |
| onIndexChange Fires when the page changes. | (index: number) => void | — |
| pagination Dots under the pager. | boolean | true |
| shade Darken faces as they turn away. | boolean | true |
| accent Active dot colour. | string | theme foreground |
| radius Corner radius of the pages. | number | 20 |
| disabled Turn swiping off (dots and a controlled index still work). | boolean | false |
| 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?
Does Cube Pager work in Expo Go?
How do I add Cube Pager to my Expo app?
Is Cube Pager free?
npx @expokit/cli@latest login) and it installs the full source into your app.