rn-datetime-picker
v0.1.2
Published
Datetime picker for React Native - android and ios
Downloads
2
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 install
To run on iOS:
react-native run-ios
To run on Android:
react-native run-android
Installation
Using npm:
$ npm install --save rn-datetime-picker
Usage
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.