1.0.2 • Published 6 years ago

react-native-universal-datepicker-ios v1.0.2

Weekly downloads
4
License
MIT
Repository
-
Last release
6 years ago

react-native-universal-datepicker-ios.

Codelab

This component works only on IOS.

Installation.

NPM

$ npm install react-native-universal-datepicker-ios --save

$ react-native link react-native-universal-datepicker-ios

List of available calendars.

Available props.

NameTypeDefaultDescription
datestring or numbertoday timestamp (new Date().getTime())timestamp value that represents the initial value of the datepicker
maximumDatestring or numbernulltimestamp value that represents the maximum date that the user can select
minimumDatestring or numbernulltimestamp value that represents the minimum date that the user can select
onChangefunc() => nullCallback that is fired when user changes current selected date. The returned object have two properties timestamp and string date
dateFormatstringdd-MM-yyyyFormat for the returned selected date
calendarstringGregoriansets native calendar type
modestringdatetimetype of the picker supports date, time, datetime

Usage

  import DatepickerIOS from 'react-native-universal-datepicker-ios';
  
 _onDateChange: function({date, timestamp}){}
 
 <DatePickerIOS calendar="IslamicUmmAlQura" 
                date={new Date().getTime()}  
                onChange={this._onDateChange} />

Credits

This project was made by the help of basemsaadawy