rn-datetime-picker

0.1.2 • Public • Published

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.

License

MIT

Package Sidebar

Install

npm i rn-datetime-picker

Weekly Downloads

3

Version

0.1.2

License

MIT

Last publish

Collaborators

  • franciscofsales