Coder Social home page Coder Social logo

logisticinfotech / react-native-datetimepicker Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 5.0 1.26 MB

React Native horizontal date picker

Home Page: https://www.logisticinfotech.com/blog/react-native-horizontal-date-picker-library/

License: MIT License

JavaScript 74.28% Python 6.98% Java 4.79% Objective-C 13.96%
react-native react-native-datetime-picker datetimepicker horizontal-datetime-picker react-native-demo react reactnativedemo reactnative-ios datepicker timepicker react-native-datepicker react-native-timer iphone-demo ios

react-native-datetimepicker's Introduction

npm version

React Native horizontal date picker

Installation and Usage

Please check this blog for installation and usage this link

Basic Properties

Prop Default Type Description
pickerType datetime enum of ["date","time","datetime"] Type of the picker user want to display.
minDate current date Date Minimum date from picker value start.
maxDate 3 months from current date Date Maximum date upto picker value display.
defaultSelected null Date By default selected date and time.
isShowYear true bool Dispay year above picker.
yearContainerStyle null style Style of the year container.
datePickerContainerStyle null style Style of the date picker.
timePickerContainer null style Style of the time picker.
yearTextStyle null style Style of the year display.
selectedTextStyle null style Style of the selected date or time.
unSelectedTextStyle null style Style of the non selected date or time.
datePickerBG null object or reference Background image of date picker.
timePikerBG null object or reference Background image of time picker.
dayFormat Do string Format of date to display.
monthFormat MMM string Format of month to display.
yearFormat yyyy string Format of year to display.
timeFormat HH:mm string Format of time to display.
timeStep 60 number Amount of the time divide in minutes for time picker.
returnDateFormat DD-MM-YYYY string Return formate of the date selected.
returnTimeFormat hh:mm a string Return formate of the time selected.
returnDateTimeFormat DD-MM-YYYY hh:mm a string Return formate of the full datetime selected.
onDateSelected () => {} function Return date when date is selected.
onTimeSelected () => {} function Return time when date is selected.
onDateTimeSelected () => {} function Return object of date, time and datetime when date or time is selected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.