Socket
Socket
Sign inDemoInstall

rmc-date-picker

Package Overview
Dependencies
25
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rmc-date-picker

React Mobile DatePicker Component for web and react-native


Version published
Weekly downloads
19K
decreased by-5.2%
Maintainers
2
Install size
5.78 MB
Created
Weekly downloads
 

Readme

Source

rmc-date-picker


React Mobile DatePicker Component (web and react-native)

NPM version react-native react build status Test coverage gemnasium deps node version npm download

Screenshots

web

ios

android

Development

npm i
npm i typings -g
typings install
npm start
npm run watch-tsc

Example

http://localhost:8000/examples/

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

react-native

npm run rn-start

load

http://localhost:8081/examples/react-native/picker.bundle?platform=ios http://localhost:8081/examples/react-native/popup.bundle?platform=ios

in RNPlayground

install

rmc-date-picker

Usage

see example

API

DatePicker props

namedescriptiontypedefault
className(web)additional css class of root dom nodeString''
prefixCls(web)prefix classString'rmc-date-picker'
pickerPrefixCls(web)picker prefix classString'rmc-picker'
defaultDatedefault selected date.GregorianCalendarnow
dateThe currently selected date.GregorianCalendar
modeThe date picker mode.String'date' enum('date', 'time', 'datetime')
minDatemin dateGregorianCalendar2000-1-1
maxDatemax dateGregorianCalendar2030-1-1
localethe locale of areaObjectimport from 'rmc-date-picker/lib/locale/en_US'
onDateChangeDate change handler.Function(date: GregorianCalendar)''

rmc-date-picker/lib/Popup props

namedescriptiontypedefault
className(web)additional css class of modal nodeString''
style(web)additional modal styleobject{}
popupTransitionName(web)String
maskTransitionName(web)String
prefixCls(web)prefix classString'rmc-date-picker'
pickerPrefixCls(web)picker prefix classString'rmc-picker'
popupPrefixCls(web)popup's prefix classString'rmc-picker-popup'
styles(react-native)PopupPicker's stylesStyleSheet.create
dateThe currently selected date.GregorianCalendar
modeThe date picker mode.String'date' enum('date', 'time', 'datetime')
minDatemin dateGregorianCalendar2000-1-1
maxDatemax dateGregorianCalendar2030-1-1
localethe locale of areaObjectimport from 'rmc-date-picker/lib/locale/en_US'
visiblewhether pop picker is visibleBooleanfalse
onChangeexec on okFunction(date: GregorianCalendar)
onPickerChangeDate inside picker change handler.Function(date: GregorianCalendar)''
onVisibleChangecalled when pop picker visible changeFunction
onDismissexec on dismissfunction
okTextok button textString'Ok'
dismissTextdismiss button textString'Dismiss'
titlePopup titleString''

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

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

Keywords

FAQs

Last updated on 27 Jul 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc