react-native-cron
v0.0.5
Published
A cron expression input. Show the user if the cron expression is valid or not.
Downloads
7
Readme
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>