Back to docs
Animation
Shimmer
Horizontal light sweep for skeleton placeholders.
Install
npx shadcn@latest add @native-bits/shimmerDependencies
react-native-reanimatedreact-native-linear-gradient
animationloopmobile
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| width | number | 180 | Shimmer width |
| height | number | 16 | Shimmer height |
| duration | number | 1300 | Cycle duration |
Usage
```tsx
import { shimmer } from '@/components/native-bits/shimmer'
<Shimmer width={180} height={18} />
```Source code
Loading...