react-native-counter-ts

0.3.1 • Public • Published

React Native Counter

Simple counter component for React Native inspired by react-count-to and react-counter.

gif

Installation

npm install --save react-native-counter

Usage

import Counter from 'react-native-counter';
 
<Counter
  end={}                        // REQUIRED End of the counter
  start={0}                     // Beginning of the counter
  time={1000}                   // Duration (in ms) of the counter
  digits={0}                    // Number of digits after the comma
  easing="linear"               // Easing function name
  onComplete={}                 // Callback when the counter is completed
  style={}                      // Custom style
/>

The easing prop is a string corresponding to one of any function from eases.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.1
    2,221
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.3.1
    2,221
  • 0.3.0
    2
  • 0.2.0
    3

Package Sidebar

Install

npm i react-native-counter-ts

Weekly Downloads

81

Version

0.3.1

License

MIT

Unpacked Size

5.38 kB

Total Files

4

Last publish

Collaborators

  • mathieusoupart-pxs