react-native-timer-component

react-native-timer-component JS library on npm Download react-native-timer-component JS library

## Getting started

Version 1.0.2
react-native-timer-component has no homepage
react-native-timer-component JS library on GitHub
react-native-timer-component JS library on npm
Download react-native-timer-component JS library
Keywords
react-native

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