Datetime picker component for android and ios
Demo is under examples folder
To build and run a example app:
git clone https://github.com/franciscofsales/rn-datetime-picker
cd rn-datetime-picker/examples/simple
npm install
To run on iOS:
react-native run-ios
To run on Android:
react-native run-android
$ npm install --save rn-datetime-picker
import React, { Component } from 'react';
render() {
return (
);
}
Prop | Type | Description |
---|---|---|
value |
Date |
Value of the picker. |
onValueChange |
function |
Callback triggered with new value when the picker has a new value. |
mode |
`String<date | time |
All contributions are very appreciated <3.