react-native-timer-component

1.0.2 • Public • Published

react-native-timer-component

Getting started

$ npm install react-native-timer-component --save

Usage

import Timer from 'react-native-timer-component';

displayMessage () {
  console.log('Timer expired')
}

render () {
  return (
    <Timer ms={5000} expired={() => {this.displayMessage}} />
  );
}

Props

  • ms integer (required) - time in milliSeconds

  • expired function - function to be executed when timer expired

Readme

Keywords

Package Sidebar

Install

npm i react-native-timer-component

Weekly Downloads

5

Version

1.0.2

License

none

Last publish

Collaborators

  • toyberman