@lighthouseapps/react-native-date-picker
v1.0.0
Published
React Native DatePicker for Android and iOS
Downloads
9
Readme
react-native-date-picker
React Native DatePicker for Android and iOS
Getting started
$ npm i @lighthouseapps/react-native-date-picker --save
Usage
import React from 'react';
import DatePicker from '@lighthouseapps/react-native-date-picker';
class App extends React.Component {
componentDidMount() {
// handleToggle('date' || 'time', callback);
this.datePicker.handleToggle('date', date => console.log(date));
}
render() {
return <DatePicker ref={ref => { this.datePicker = ref; }} />;
}
}