Back to docs
Animation
Spring Reveal
Spring-based reveal from x or y axis.
Install
npx shadcn@latest add @native-bits/spring-revealDependencies
react-native-reanimated
animationentrancemobile
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | - | Animated content |
| axis | 'x' | 'y' | 'y' | Reveal axis |
| from | number | 24 | Initial offset value |
Usage
```tsx
import { spring-reveal } from '@/components/native-bits/spring-reveal'
<SpringReveal axis="y" from={32}>
<BottomTray />
</SpringReveal>
```Source code
Loading...