Props
| Prop | Type | Default |
|---|---|---|
| children Layers, back to front. | ParallaxLayer[] | — |
| height Scene height. | number | 260 |
| travel How far a depth-1 layer moves, in points. | number | 22 |
| tilt Scene tilt in degrees; 0 for flat parallax. | number | 8 |
| idle Drift on its own while untouched. | boolean | true |
| clip Clip layers to the scene's rounded box. | boolean | true |
| accessibilityLabel Describes the scene for screen readers. | string | — |
| radius Corner radius of the scene. | number | 24 |
| style Style for the scene. | StyleProp<ViewStyle> | — |
| className Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. | string | — |
| ParallaxLayer.depth 0 stays put, 1 moves the full travel, negative moves the other way. | number | 0.5 |
| ParallaxLayer.scale Extra scale; far layers (depth ≤ 0.35) grow just enough to hide their edges. | number | far layers grow slightly |
| ParallaxLayer.style Style for the layer (it fills the scene). | StyleProp<ViewStyle> | — |
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).
- style
- StyleProp<ViewStyle>Style for the scene.
- className
- stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.
- ParallaxLayer.style
- StyleProp<ViewStyle>Style for the layer (it fills the scene).
Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.
Behaviour & accessibility
- Touch
- The finger position steers the scene and release springs it back to centre. A parent ScrollView can still take over a scroll that starts on it.
- Motion
- Each layer moves by its depth times travel while the whole scene tilts in perspective. Left alone, it drifts slowly on a loop.
- Screen readers
- With accessibilityLabel the scene is one image element with that label; without it, it is not exposed.
- Platforms
- Transforms run on the native driver with PanResponder, so it works on iOS, Android and web with no native modules.
Source
FAQ
How do I make a parallax effect in React Native?
Does Parallax Layers work in Expo Go?
How do I add Parallax Layers to my Expo app?
Is Parallax Layers free?
npx @expokit/cli@latest login) and it installs the full source into your app.