0.0.12 ā€¢ Published 1 year ago

react-native-customized-datepicker v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-native-customized-datepicker

A cross platform fully customisable and advanced date picker with flexibility to customise variety options built on top of react-native-date-picker.

This is a React Native Customized Date Picker with following main features:

šŸ“±Ā  Supports iOS, Android šŸ•‘Ā  3 different modes: Time, Date, DateTime šŸŽØĀ  Fully Customizable

Requirements

  • Xcode >= 11.6
  • React Native >= 0.57.
  • If using React Native 0.64, 0.64.2 or later must be used.
  • If using Expo, SDK 42 or later must be used. If using Expo SDK 44, 44.0.4 or later must be used.

Installation

See github page for installation instructions.

Documentation

See github page for documentation and more info.

Examples

See github page for examples.

Props

PropDescription
dateThe default or selected date Required
visibleBoolean indicating datepicker visibility Required
onConfirmCallback function to get the date after user selects and click on confirm button Required
onCancelCallback function to dismiss datepicker after user clicks on cancel button Required
backgroundColorBackground Color of the datepicker default to #FFFFFF Optional
pickerTitleTitle of datepicker default to "Select Date" Optional
pickerTitleColorText Color of title default to #000000 Optional
cancelButtonTextCancel button text default to "Cancel" Optional
confirmButtonTextConfirm button text default to "Confirm" Optional
confirmButtonBackgroundConfirm button background color default to #0052CC Optional
cancelButtonBackgroundCancel button background color default to #E0E1E4 Optional
cancelButtonTextColorCancel button text color default to #000000 Optional
confirmButtonTextColorConfirm button text color default to #FFFFFF Optional
cancelButtonBorderColorCancel button border color default to "transparent" Optional
minimumDateMinimum selectable date For Example : new Date("2004-09-12") Optional
maximumDateMaximum selectable date For Example : new Date("2022-01-31") default to today's date Optional
androidVariantChoose from 2 android style variants. "iosClone", "nativeAndroid" Optional
modalAnimationTypeModal apperance animatiion choose from 3 animation variants "fade", "none" , "slide"; default to "slide" Optional
themeiOS 13+: The theme of the modal. "light", "dark", "auto". default to "auto". Optional
modeThe date picker mode. "datetime", "date", "time" Optional
cancelButtonStyleCancel Button Style Optional
confirmButtonStyleConfirm Button Style Optional
buttonTextSizeFont Size for the buttons Optional
modalHeightHeight for the datpickerOptional
modalWidthWidth for the datepickerOptional

Support this package!

If you like this package, consider giving it a github ā†’ star ā­ Also, PR's are welcome!