0.12.0 • Published 9 months ago

@moxorama/reanimated-numbers v0.12.0

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

@moxorama/reanimated-numbers

Library that animates changes in numbers

Installation

npm install @moxorama/reanimated-numbers

Usage

import { AnimatedNumber } from '@moxorama/reanimated-numbers';

// ...
<AnimatedNumber
  value={number}
  fontSize={48}
  duration={750}
  format={new Intl.NumberFormat('en-US')}
/>
  • number is the number to animate.
  • fontSize is the font size of the number.
  • duration is the duration of the animation in milliseconds.
  • format (optional) is the format of the number, by default there is no formatting.

lineHeight is fontSize * 1.2

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

0.12.0

9 months ago

0.11.2

9 months ago

0.11.1

9 months ago

0.11.0

9 months ago

0.10.1

9 months ago

0.10.0

10 months ago