0.1.2 • Published 7 years ago

rn-datetime-picker v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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

PropTypeDescription
valueDateValue of the picker.
onValueChangefunctionCallback triggered with new value when the picker has a new value.
modeString<date|time|datetime>Defines what should show: date picker, time picker, datetime picker.

Contributing

All contributions are very appreciated <3.

License

MIT