Skip to content

Animated counter component for React Native without plugin

Notifications You must be signed in to change notification settings

ugurdalkiran/React-Native-Counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Animated counter component for React Native without plugin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published