All Projects → talalmajali → React Native Countdown Component

talalmajali / React Native Countdown Component

Licence: mit
React Native CountDown

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Native Countdown Component

Flip
⏳ The online version of the classic flip clock
Stars: ✭ 460 (+138.34%)
Mutual labels:  counter, countdown
Termdown
Countdown timer and stopwatch in your terminal
Stars: ✭ 749 (+288.08%)
Mutual labels:  timer, countdown
Node Measured
A Node metrics library for measuring and reporting application-level metrics, inspired by Coda Hale, Yammer Inc's Dropwizard Metrics Libraries
Stars: ✭ 500 (+159.07%)
Mutual labels:  timer, counter
tm
timers and timeline
Stars: ✭ 31 (-83.94%)
Mutual labels:  counter, timer
Dipstick
Configurable metrics toolkit for Rust applications
Stars: ✭ 92 (-52.33%)
Mutual labels:  timer, counter
react-component-countdown-timer
This is a simple count down timer react component.
Stars: ✭ 18 (-90.67%)
Mutual labels:  countdown, timer
Countdownlabel
Simple countdown UILabel with morphing animation, and some useful function.
Stars: ✭ 714 (+269.95%)
Mutual labels:  timer, countdown
use-countdown-timer
React hook exposing a countdown timer with optional expiration reset callbacks
Stars: ✭ 31 (-83.94%)
Mutual labels:  countdown, timer
Flip Clock
A flip clock, timer and countdown made with Polymer
Stars: ✭ 69 (-64.25%)
Mutual labels:  timer, countdown
Countdowntask
⌛️A countdown library for Android.
Stars: ✭ 64 (-66.84%)
Mutual labels:  timer, countdown
alfred-timer-workflow
Alfred workflow to start a timer, which blinks when the time is up.
Stars: ✭ 39 (-79.79%)
Mutual labels:  countdown, timer
React Timer Hook
React timer hook
Stars: ✭ 118 (-38.86%)
Mutual labels:  timer, countdown
inspector-metrics
Typescript metrics / monitoring library
Stars: ✭ 19 (-90.16%)
Mutual labels:  counter, timer
Web-Time-Tracker
Plugin named Timetracker is a time counter that works in both increase and decrease directions.
Stars: ✭ 21 (-89.12%)
Mutual labels:  countdown, timer
hass-variables
Home Assistant variables component
Stars: ✭ 35 (-81.87%)
Mutual labels:  counter, timer
Easytimer.js
Easy to use Timer/Stopwatch/Countdown library compatible with AMD, ES6 and Typescript
Stars: ✭ 562 (+191.19%)
Mutual labels:  timer, countdown
react-timer-wrapper
Composable React Timer component that passes status props to children, in addition to some basic callbacks. Can be used at a countdown timer ⏲ or as stopwatch ⏱ to track time while active.
Stars: ✭ 14 (-92.75%)
Mutual labels:  countdown, timer
tiny-timer
🕑 Small countdown timer and stopwatch module.
Stars: ✭ 39 (-79.79%)
Mutual labels:  countdown, timer
React Countdown
React Component showing a countdown to certain date and time.
Stars: ✭ 58 (-69.95%)
Mutual labels:  timer, countdown
Use Timer
A timer hook for React
Stars: ✭ 113 (-41.45%)
Mutual labels:  timer, countdown

react-native-countdown

React Native CountDown

Installation

Run npm install react-native-countdown-component --save OR yarn add react-native-countdown-component --save

Props

Name Description Type Default Value
id Counter id, to determine whether to reset the counter or not string null
style Override the component style object {}
digitStyle Digit style object {backgroundColor: #FAB913 '#FAB913'}
digitTxtStyle Digit Text style object {color: #FAB913 '#000'}
timeLabelStyle Time Label style object {color: #FAB913 '#000'}
separatorStyle Separator style object {color: #FAB913 '#000'}
size Size of the countdown component number 15
until Number of seconds to countdown number 0
onFinish What function should be invoked when the time is 0 func null
onChange What function should be invoked when the timer is changing func null
onPress What function should be invoked when clicking on the timer func null
timeToShow What Digits to show array ['D', 'H', 'M', 'S']
timeLabels Text to show in time label object {d: 'Days', h: 'Hours', m: 'Minutes', s: 'Seconds'}
showSeparator Should show separator bool false
running a boolean to pause and resume the component bool true

Preview

React Native Countdown

Code

import CountDown from 'react-native-countdown-component';

render() {
    return (
      <CountDown
        until={10}
        onFinish={() => alert('finished')}
        onPress={() => alert('hello')}
        size={20}
      />
    )
}

Custom Styling Example

React Native Countdown

Code

import CountDown from 'react-native-countdown-component';

render() {
    return (
      <CountDown
        until={60 * 10 + 30}
        size={30}
        onFinish={() => alert('Finished')}
        digitStyle={{backgroundColor: '#FFF'}}
        digitTxtStyle={{color: '#1CC625'}}
        timeToShow={['M', 'S']}
        timeLabels={{m: 'MM', s: 'SS'}}
      />
    )
}

Separator Example

React Native Countdown

Code

import CountDown from 'react-native-countdown-component';

render() {
    return (
      <CountDown
        size={30}
        until={1000}
        onFinish={() => alert('Finished')}
        digitStyle={{backgroundColor: '#FFF', borderWidth: 2, borderColor: '#1CC625'}}
        digitTxtStyle={{color: '#1CC625'}}
        timeLabelStyle={{color: 'red', fontWeight: 'bold'}}
        separatorStyle={{color: '#1CC625'}}
        timeToShow={['H', 'M', 'S']}
        timeLabels={{m: null, s: null}}
        showSeparator
      />
    )
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].