react-native-cron

0.0.5 • Public • Published

react-native-cron

A cron expression input. Show the user if the cron expression is valid or not.

Usage

npm i --save-dev react-native-cron cron-parser

Usage in a React native project (see tests/DemoApp for usage of this component)

import { ReactNativeCron } from 'react-native-cron'
 
 
  updateParent (value) {
    this.setState({ isFormValid: value })
    console.log(this.state.isFormValid)
  }
 
  <View style={styles.container}>
        <Text style={styles.welcome}>
          React Native Cron Demo
        </Text>
        <ReactNativeCron updateParent={this.updateParent.bind(this)}/>
        <Text style={styles.instructions}>
          The Cron input expression is {this.state.isFormValid.toString()}
        </Text>
      </View>
 

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-cron

Weekly Downloads

0

Version

0.0.5

License

ISC

Last publish

Collaborators

  • nikos777