nativerepo.com

rn-date-picker

React Native Date Select Component

Screenshot

Development

npm install
npm start

Example

http://localhost:8081/examples/

online example: http://react-component.github.io/rn-date-picker/

install

rn-date-picker

Usage

see example

API

DatePicker props

namedescriptiontypedefault
defaultDatedefault selected date.Datenow
dateThe currently selected date.Date
onDateChangeDate change handler.Function(date: Date)''
modeThe date picker mode.String'date' enum('date', 'time', 'datetime')
minDatemin dateDateSystem
maxDatemax dateDateSystem

rn-date-picker/src/Popup props

namedescriptiontypedefault
defaultDatedefault selected date.Datenow
dateThe currently selected date.Date
onPickerChangeDate inside picker change handler.Function(date: Date)''
modeThe date picker mode.String'date' enum('date', 'time', 'datetime')
minDatemin dateDateSystem
maxDatemax dateDateSystem
onChangeexec on okFunction(date: Date)
onDismissexec on dismissfunction
okTextok button textString'Ok'
dismissTextdismiss button textString'Dismiss'
visiblewhether pop picker is visibleBoolean
onVisibleChangecalled when pop picker visible changeFunction

License

rn-date-picker is released under the MIT license.


Comments
Details
Added at: 2017/03/19
Owner: react-component
Category: other
Homepage: https://github.com/react-component/rn-date-picker
Downloads last month: 12
Version: 0.1.0
Compatibility

Add to your project

npm i --save rn-date-picker