Back to docs
Animation
Bounce
Looping vertical bounce useful for hint indicators.
Install
npx shadcn@latest add @native-bits/bounceDependencies
react-native-reanimated
animationloopmobile
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | - | Animated content |
| height | number | 18 | Bounce distance |
| duration | number | 650 | Cycle duration |
Usage
```tsx
import { bounce } from '@/components/native-bits/bounce'
<Bounce height={16} duration={620}>
<HintDot />
</Bounce>
```Source code
Loading...