rn-datetime-picker
v0.1.2
Published
Datetime picker for React Native - android and ios
Maintainers
Readme
React Native Datetime Picker
Datetime picker component for android and ios
Example
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 installTo run on iOS:
react-native run-iosTo run on Android:
react-native run-androidInstallation
Using npm:
$ npm install --save rn-datetime-pickerUsage
import React, { Component } from 'react';
render() {
return (
);
}Props
| 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|datetime>|Defines what should show: date picker, time picker, datetime picker.|
Contributing
All contributions are very appreciated <3.
