3.2.2 • Published 6 months ago
react-native-slot-text v3.2.2
react-native-slot-text
To install dependencies:
bun install react-native-slot-text
This project was created using bun init
in bun v1.1.21. Bun is a fast all-in-one JavaScript runtime.
https://github.com/user-attachments/assets/49671041-9481-4c04-b61d-6afdca74757d
https://github.com/user-attachments/assets/9cea5bdb-032e-4e4a-8d32-f2fa58684d9d
Usage
<SlotText
fontStyle={styles.animatedNumbers}
value={`${value}`}
prefix='$'
animationDuration={200}
includeComma={true}
/>
Props
Prop | Type | Default | Description |
---|---|---|---|
value | number | string | Required | The value to animate to. Can be a number or a string of numeric characters. |
fontStyle | Object (TextStyle) | Required | The style of the text, passed as a TextStyle object. |
animationDuration | number | 400 | The duration of the animation in milliseconds. Only supported when animateIntermediateValues is false . |
prefix | string | "" | A prefix to the number, such as a currency symbol (e.g., $ or € ). |
includeComma | boolean | false | Whether to include commas as thousand separators. |
animateIntermediateValues | boolean | false | Whether to animate all intermediate numbers between the new value and the current value of a digit. Useful for rapidly changing values to prevent glitches in animation. |
3.2.2
6 months ago
3.2.1
6 months ago
3.2.0
6 months ago
3.1.0
6 months ago
1.0.8
8 months ago
1.0.7
8 months ago
3.0.0
6 months ago
1.0.6
8 months ago
2.2.1
7 months ago
2.2.0
7 months ago
2.2.3
6 months ago
2.2.2
6 months ago
2.1.0
7 months ago
2.0.1
7 months ago
2.0.0
7 months ago
1.0.5
8 months ago
1.0.4
8 months ago
1.0.3
9 months ago
1.0.2
9 months ago
1.0.1
9 months ago
1.0.0
9 months ago