Pagination Dots
Step and carousel pagination dot indicator with active pill expansion and interactive dot press.
v0.3.3NativeWindStyleSheetiOSAndroidExpo GoWeb
Preview
Installation
npx nativra-cli add pagination-dotsWrites PaginationDots.tsx to components/ui, rewrites imports to your aliases and records hashes in nativra.lock.json, along with 1 registry dependency. Existing files are never overwritten without asking.
Want to try it first? Open it in the playground: a real React Native project in your browser, with this item installed by the CLI.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| total | number | required | Total number of steps or slides |
| currentIndex | number | required | Zero-based active slide index |
| onDotPress | (index: number) => void | undefined | Optional callback when a dot is tapped |
Source
Exactly what the CLI writes, before your import aliases are applied.