Back to docs
Animation

Spring Reveal

Spring-based reveal from x or y axis.

Install

npx shadcn@latest add @native-bits/spring-reveal

Dependencies

react-native-reanimated
Try in Sandbox
animationentrancemobile

Props

PropTypeDefaultDescription
childrenReactNode-Animated content
axis'x' | 'y''y'Reveal axis
fromnumber24Initial offset value

Usage

```tsx
import { spring-reveal } from '@/components/native-bits/spring-reveal'

<SpringReveal axis="y" from={32}>
  <BottomTray />
</SpringReveal>
```

Source code

Loading...