1.0.0 • Published 4 years ago

@miidx/rn-count-down v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

rn-count-down

A React Native component which can show time count down starting from current time.

npm.io

Installation

  npm i @miidx/rn-count-down

Usage

    <Countdown
      label="Time:"
      endTime="2019-12-19T17:32+07:00"
      onTimeIsUp={() => { console.log('Time is up!'); }}
    />

Properties

NameDescriptionTypeRequiredDefault value
containerStyleStyle of component's containerobjectno{}
endTimeEnd time value in complete ISO-8601 date time format YYYY-MM-DDTHH:mmZ. YYYY is 4 digit year, MM is month number, DD is day of month, HH is hours in 24 hour time, mm is minutes, and Z is offset from UTC time, such as +-HH:mm. Adding seconds s and fractional seconds SS are optionalstringyes
labelText shown beside time count downstringno''
onTimeIsUpCallback called when time is upfunctionyes
textStyleStyle of time value textobjectno{}