Gathering detailed insights and metrics for rn-number-flow
Gathering detailed insights and metrics for rn-number-flow
Gathering detailed insights and metrics for rn-number-flow
Gathering detailed insights and metrics for rn-number-flow
npm install rn-number-flow
Typescript
Module System
Node Version
NPM Version
TypeScript (90.14%)
JavaScript (9.86%)
Total Downloads
1,389
Last Day
1
Last Week
18
Last Month
105
Last Year
1,389
MIT License
34 Stars
18 Commits
3 Forks
2 Watchers
2 Branches
1 Contributors
Updated on Aug 19, 2025
Latest Version
0.1.6
Package Id
rn-number-flow@0.1.6
Unpacked Size
48.58 kB
Size
12.79 kB
File Count
23
NPM Version
10.5.0
Node Version
20.12.1
Published on
Nov 24, 2024
Cumulative downloads
Total Downloads
Last Day
-66.7%
1
Compared to previous day
Last Week
-40%
18
Compared to previous week
Last Month
-11.8%
105
Compared to previous month
Last Year
0%
1,389
Compared to previous year
3
19
A beautiful, high-performance animated number transition component for React Native. Perfect for displaying counters, prices, statistics, and any numeric values with style! 💫
1# Using npm 2npm install rn-number-flow 3 4# Using yarn 5yarn add rn-number-flow
Make sure you have react-native-reanimated installed and configured in your project.
1import NumberFlow from 'rn-number-flow'; 2 3// Basic usage 4<NumberFlow value="1234" /> 5 6// With custom styling 7<NumberFlow 8 value="1234.56" 9 style={{ fontSize: 24, color: '#007AFF' }} 10 separatorStyle={{ color: '#666' }} 11/> 12 13// With custom animation config 14<NumberFlow 15 value="9999" 16 animationConfig={{ 17 enabled: true, 18 animateOnMount: true, 19 digitDelay: 50, 20 mass: 0.8, 21 stiffness: 75, 22 damping: 15 23 }} 24/>
Prop | Type | Default | Description |
---|---|---|---|
value | string | - | The numeric value to display |
style | TextStyle | - | Style for the digits |
separatorStyle | TextStyle | - | Style for non-numeric characters (like commas, decimals) |
autoFitText | boolean | false | Enable/disable text auto-fitting based on ascender |
animationConfig | AnimationConfig | - | Configuration for animations |
Option | Type | Default | Description |
---|---|---|---|
enabled | boolean | true | Enable/disable animations |
animateOnMount | boolean | true | Animate on initial render |
digitDelay | number | 20 | Delay between digit animations (ms) |
mass | number | 0.8 | Spring animation mass |
stiffness | number | 75 | Spring animation stiffness |
damping | number | 15 | Spring animation damping |
reduceMotion | ReduceMotion | System | Respect system's reduce motion settings |
1import NumberFlow from 'rn-number-flow'; 2 3function Counter() { 4 const [count, setCount] = useState(0); 5 6 return ( 7 <View> 8 <NumberFlow value={count.toString()} /> 9 <Button title="Increment" onPress={() => setCount(c => c + 1)} /> 10 </View> 11 ); 12}
1<NumberFlow 2 value="$1,234.99" 3 style={{ fontSize: 32, fontWeight: 'bold' }} 4 separatorStyle={{ color: '#666' }} 5 animationConfig={{ digitDelay: 50 }} 6/>
Contributions are welcome! Feel free to open issues and submit PRs.
MIT
Made with ❤️ for the React Native community.
No vulnerabilities found.