
Description
react-native-animated-numbers is a React Native library that animates a number from its old value to a new one. You give it the number to animate to, and the component shows the change over a set duration, which defaults to 1400 milliseconds. Other props control the font style of the number, the style of its container, and the easing curve, which defaults to an elastic easing from React Native's Animated API. The includeComma prop adds thousands separators, and the locale prop sets how the number is split, with en-US as the default. The fontVariant prop sets font variants for the text and defaults to tabular numbers, so digits keep an even width during the animation. The README includes install steps, an example and a screenshot. It also points to a React web version of the same idea, named react-animated-numbers, for projects that are not React Native. The library is aimed at React Native developers who want counters or statistics that animate when their values change.…
Highlights
- Animated number changes in React Native
- Configurable duration and easing
- Optional thousands separators by locale
- Custom font style and container style
- Tabular number font variant by default
Ratings & Reviews
No ratings yet
Be the first to rate react-native-animated-numbers.
People also visit
react-native-animated-numbers FAQ
What is react-native-animated-numbers?
A React Native library that animates a number from its previous value to a new one.
How do I change the speed?
Set animationDuration in milliseconds. It defaults to 1400.
Can it show commas?
Yes. Set includeComma to true, and use the locale prop to choose how the number is split. The default is en-US.
Is there a web version?
The README points to a React web version called react-animated-numbers.
How do I install it?
The README has an install section with the command for adding the package to a project.
What are the best react-native-animated-numbers alternatives?
Popular alternatives to react-native-animated-numbers include react-slot-counter, react-native-circular-progress and number-flow. See all react-native-animated-numbers alternatives

















