3.2.2 • Published 9 months ago

react-native-slot-text v3.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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

PropTypeDefaultDescription
valuenumber | stringRequiredThe value to animate to. Can be a number or a string of numeric characters.
fontStyleObject (TextStyle)RequiredThe style of the text, passed as a TextStyle object.
animationDurationnumber400The duration of the animation in milliseconds. Only supported when animateIntermediateValues is false.
prefixstring""A prefix to the number, such as a currency symbol (e.g., $ or ).
includeCommabooleanfalseWhether to include commas as thousand separators.
animateIntermediateValuesbooleanfalseWhether 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

9 months ago

3.2.1

9 months ago

3.2.0

9 months ago

3.1.0

9 months ago

1.0.8

11 months ago

1.0.7

11 months ago

3.0.0

9 months ago

1.0.6

11 months ago

2.2.1

10 months ago

2.2.0

10 months ago

2.2.3

9 months ago

2.2.2

9 months ago

2.1.0

10 months ago

2.0.1

10 months ago

2.0.0

10 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago