Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 992 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 992 Bytes

React-Native-Counter

Simple counter component inspired by Kerumen/react-native-counter. Thanks.

Installation

You can start to use the Counter.js file by adding it to the project manually.

Basic Usage

import Counter from './Counter.js';
<Counter
  start = {250}   // Beginning of the counter
  end = {1750}    // End of the counter
  time = {8000}   // Duration (in ms) of the counter
  digits = {0}    // Number of digits after the comma
  style = {{ backgroundColor: '#555', color: '#fff', fontSize: 26 }}    // Style
  suffix = '$'    // Suffix of the counter
/>

You can browse to the Example.js file for the image on the right.

Basic - Example