1.0.19 • Published 4 years ago

react-native-timekeeper-new v1.0.19

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

react-native-timekeeper

Timekeeper is the most complete and lightweight component for React-Native that allows you to create your own animated timer.

Features!

  • Custom colors
  • Custom borders and size
  • Light-weight: No other dependencies besides react-native
  • Enable/disable scale bounce animation (also specifies the size of the scales)
  • Progressive or regressive counting
  • Enable/disable pausable timer
  • Apply your own callbacks on pausing, on resuming, or time elapsed

Installation

$ yarn add react-native-timekeeper-new

or

$ npm install react-native-timekeeper-new --save

Usage

import Timer from 'react-native-timekeeper';

render() {
    return(
        <Timer
          beat={true}
          seconds={120}
          radius={100}
          borderWidth={6}
          color="#C52957"
          bgColor="#DE537C"
          bgColorSecondary="#E495AC"
          bgColorThirt="#EFD6DE"
          shadowColor="#DE537C"
          textStyle={{ fontSize: 52, color: '#FFF', }}
          subTextStyle={{ fontSize: 20, color: '#FFF', }}
          onTimeElapsed={() => {console.log('Time elapsed')} }
          isPausable={true}
          onPause={() => console.log('Pause')}
          onResume={() => console.log('Resume')}
          minScale={0.9}
          maxScale={1.2}
          />
    );
}

Props

NameDescriptionTypeRequiredDefault Value
beat--------------------------------------------
seconds--------------------------------------------
radius--------------------------------------------
borderWidth--------------------------------------------
color--------------------------------------------
bgColor--------------------------------------------
bgColorSecondary--------------------------------------------
bgColorThirt--------------------------------------------
shadowColor--------------------------------------------
textStyle--------------------------------------------
subTextStyle--------------------------------------------
onTimeElapsed--------------------------------------------
isPausable--------------------------------------------
onPause--------------------------------------------
onResume--------------------------------------------
minScale--------------------------------------------
maxScale--------------------------------------------

Author

Xavier LE CUNFF

Forked from Yamil Diaz Aguirre Since its seems no longer maintained

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago