# Number Ticker — React Native component for Expo

> Each digit rolls like an odometer, flashing green or red as it changes.

An odometer for your numbers — every digit rolls on its own spring (up when the value grows, down when it shrinks), staggered right to left, with a green/red colour flash, separators, decimals, prefix and suffix.

- Docs: https://expokit.in/docs/components/number-ticker
- Tier: Pro (ExpoKit Pro plan)
- Also called: animated number, counter animation, count up
- Category: Motion
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- Uses ExpoKit items: kit
- Variants: Counter, Stock Price, Revenue, Sizes

## Installation

This component is part of ExpoKit Pro. With a Pro plan, log the CLI in once and add it like any other item:

```bash
npx @expokit/cli@latest login
```

Plans: https://expokit.in/pricing

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `value` | `number` | — | The number to show. |
| `decimals` | `number` | `0` | Digits after the decimal point. |
| `prefix / suffix` | `string` | — | Static text around the number ("₹", "%"). |
| `separator` | `string \| false` | `","` | Thousands separator. |
| `grouping` | `'thousands' \| 'indian'` | `'thousands'` | Digit grouping: 1,234,567 or lakh / crore style 12,34,567. |
| `decimalSeparator` | `string` | `"."` | Decimal point. |
| `size` | `"sm" \| "md" \| "lg" \| "xl" \| number` | `"md"` | 18 / 28 / 40 / 56pt, or a font size. |
| `fontWeight` | `TextStyle['fontWeight']` | `"500"` | Weight of the digits. |
| `color` | `string` | `theme foreground` | Text colour. |
| `flash` | `boolean` | `true` | Tint green on increase, red on decrease. |
| `animateOnMount` | `boolean` | `true` | Roll up from zero on first render. |
| `stagger` | `number` | `35` | Delay between columns in ms. |
| `textStyle` | `StyleProp<TextStyle>` | — | Extra glyph styles. |
| `style` | `StyleProp<ViewStyle>` | — | Style for the row of digits. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## Behaviour & accessibility

- **Motion**: Each digit springs along its own 0–9 strip, up when the value grows and down when it shrinks, staggered right to left. The text briefly tints green or red on every change.
- **Screen readers**: The whole number is one text element, read with its prefix and suffix instead of digit by digit.
- **Platforms**: Plain Animated views on iOS, Android and web. The digit rolls use the native driver; only the colour flash runs in JS.

## FAQ

### How do I make an animated number in React Native?

Use ExpoKit's Number Ticker, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made animated number into your Expo or React Native app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.

### Does Number Ticker work in Expo Go?

Yes. Number Ticker runs in Expo Go on iOS and Android with no development build.

### How do I add Number Ticker to my Expo app?

With ExpoKit Pro, add it with the ExpoKit CLI: it copies the component's source into your app, so the code is yours to change. The install command is on this page for Pro members.

### Is Number Ticker free?

Number Ticker is part of ExpoKit Pro. With a Pro plan, log the CLI in once and it installs the full source into your app.

### Can I change how Number Ticker looks?

Yes. It takes its colours, radius and light / dark mode from useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.

## More

- Live preview, variants and code: https://expokit.in/docs/components/number-ticker
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
