6.0.10 • Published 5 years ago

rmc-date-picker v6.0.10

Weekly downloads
25,130
License
MIT
Repository
github
Last release
5 years ago

rmc-date-picker


React Mobile DatePicker Component (web and react-native)

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

Screenshots

web

ios

android

Usage

see example

Development

npm i
npm start

Example

http://localhost:8000/examples/

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

react-native

npm run rn-init
npm run watch-tsc
react-native start
react-native run-ios

install

rmc-date-picker

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.Date
dateThe currently selected date.Date
modeThe date picker mode.String'date' enum('date', 'time', 'datetime', 'year', 'month')
minDatemin dateDatenew Date(2000, 1, 1, 0, 0, 0)
maxDatemax dateDatenew Date(2030, 1, 1, 23, 59, 59)
minHourmin Hour [0, 23]Number0
maxHourmax Hour [0, 23]Number23
minMinutemax Minute [0, 59]Number0
maxMinutemax Minute [0, 59]Number59
localethe locale of areaObjectimport from 'rmc-date-picker/lib/locale/en_US'
use12Hours12 hours display modeBooleanfalse
minuteStepThe amount of time, in minutes, between each minute item. Number1
onDateChangeDate change handler.Function(date: Date)''
onValueChangefire when picker change(vals: any, index: number) => void
formatMonthCustomize display value of months(month:number, current:Date) => React.Node
formatDayCustomize display value of days(day:number, current:Date) => React.Node

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)popup's prefix classString'rmc-picker-popup'
styles(react-native)PopupPicker's stylesStyleSheet.create
datePickerDatePicker elementReact DatePicker element
dateThe currently selected date.Date
visiblewhether pop picker is visibleBooleanfalse
onChangeexec on okFunction(date: Date)
onVisibleChangecalled when pop picker visible changeFunction
onDismissexec on dismissfunction
okTextok button textstring/React.ReactElement'Ok'
dismissTextdismiss button textstring/React.ReactElement'Dismiss'
titlePopup titlestring/React.ReactElement''

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.

zeal-cube-mobileantd-mobile-rn-responsivemiot-workspaceant-zyxc-antdxs-mobile@teko-builder/builder-base-components@infinitebrahmanuniverse/nolb-rm@everything-registry/sub-chunk-2672sz-calcwuba-designxia-formrtl-antd-mobilermc-calendarrmc-calendar-bxbrmc-calendar-extendedrmc-calendar-jddrmc-calendar-modifyrnkitsgj-uisxf-mobileux-m-ceshi-platform-block-datepickerux-m-platform-block-datepickermsbu-ui-reactjdcloudmuijdd-react-componentshyn-libjw-components-mobilehrfax-mobilehrfax-and-mhouse-middleware-sdkgpot-uilcgc-uine-rc1owl-mobileppx-uipreact-h5-uippfish-mobilenemo-antd-mobilenemo-mobileqingtaireact-native-test-uirtaro-ui@alitajs/dform@beisen/chaos-ui@beisen/bsapp-mobile-ui588middleware58middlewareyes-comp-react-native-webzcontrolzcontrolfixy-antd-mobilexyl-mobilezendo-pczendo-uizhytestcccccweaver-mobile@gutenye/antd-mobile@huangming1994/antd-mobile@gem-mine/rmc-calendar@lighthouseapps/ui@lingxiteam/dform@nice-fungal/antd-mobile@merryjs/mini@molejs/mole-components-rn@molejs/mole-components-web@mdfe/antd-mobile@johnnylc/rn-custom-ui-components@privatefly/flight_search_widget@slsoft/reactcontrols@dodoex/widgets@beisen/mole-components-webantd-mobile-without-normalizeantd-mobile1221antd-mobile_chantdmantd-mobile-alitaantd-mobile-mpantd-mobile-owantd-mobile-rnantd-mobile-rn-kxxantd-mobile-rn-mrhuangjser-forkedantd-mobile-ruiantd-mobile-testantd-mobile-v2antd-mobile-alipay-uiantd-mobile-carengoantd-mobile-cyqaphrodite-mobileant-mobile-ruiantFB-mobilecent-react-wheelarabic-antd-mobileares-uikitbfk-wing-blankbcs-mobilebcs-design-mobilebcs-kitbennt-antd-mobile-laguage-twbennt-antd-phone-laguage-tw
6.0.10

5 years ago

6.0.9

6 years ago

6.0.8

7 years ago

6.0.7

7 years ago

6.0.6

7 years ago

6.0.5

7 years ago

6.0.4

7 years ago

6.0.3

7 years ago

6.0.2

7 years ago

6.0.1

7 years ago

6.0.0

7 years ago

6.0.0-alpha.10

7 years ago

6.0.0-alpha.9

7 years ago

6.0.0-alpha.8

7 years ago

6.0.0-alpha.7

7 years ago

6.0.0-alpha.6

7 years ago

5.5.0

7 years ago

6.0.0-alpha.5

7 years ago

6.0.0-alpha.4

7 years ago

6.0.0-alpha.3

7 years ago

6.0.0-alpha.2

7 years ago

6.0.0-alpha.1

7 years ago

5.4.1

7 years ago

5.0.6

8 years ago

5.4.0

8 years ago

5.3.3

8 years ago

5.3.2

8 years ago

5.3.1

8 years ago

5.3.0

8 years ago

5.2.0

8 years ago

5.1.0

8 years ago

5.0.5

8 years ago

5.0.4

8 years ago

5.0.3

8 years ago

5.0.2

8 years ago

5.0.1

8 years ago

5.0.0

8 years ago

4.0.3

8 years ago

4.0.2

8 years ago

4.0.1

8 years ago

4.0.0

8 years ago

3.1.1

8 years ago

3.1.0

8 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.3.0

9 years ago

2.2.0

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.8.1

9 years ago

1.8.0

9 years ago

1.7.4

9 years ago

1.7.3

9 years ago

1.7.2

9 years ago

1.7.1

9 years ago

1.7.0

9 years ago

1.6.0

9 years ago

1.5.1

9 years ago

1.5.0

9 years ago

1.4.0

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago