All Projects β†’ pohsiu β†’ react-native-date-ranges

pohsiu / react-native-date-ranges

Licence: other
idea from react-native-dates >

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-date-ranges

Chocobo-Date-Range-Picker
πŸ—“οΈ Component - The Date Range Picker easier to use in AngularJS.
Stars: ✭ 23 (-66.18%)
Mutual labels:  date, range, daterange, daterangepicker
Period
PHP's time range API
Stars: ✭ 616 (+805.88%)
Mutual labels:  date, range, daterange
Ion2 Calendar
πŸ“… A date picker components for ionic2 /ionic3 / ionic4
Stars: ✭ 537 (+689.71%)
Mutual labels:  range, daterange, daterangepicker
Vuetify Daterange Picker
The missing date range picker for Vuetify JS you have been looking for.
Stars: ✭ 192 (+182.35%)
Mutual labels:  date, range, daterange
Lightpick
(deprecated) Check out the new date picker Litepicker
Stars: ✭ 204 (+200%)
Mutual labels:  date, range, daterange
vue-daterangepicker-component
Date range picker for Vue 1.x, based on bootstrap-daterangepicker
Stars: ✭ 22 (-67.65%)
Mutual labels:  date, daterange, daterangepicker
Calendarview
A highly customizable calendar library for Android, powered by RecyclerView.
Stars: ✭ 2,862 (+4108.82%)
Mutual labels:  date, daterange, daterangepicker
Flatpickr
lightweight, powerful javascript datetimepicker with no dependencies
Stars: ✭ 14,575 (+21333.82%)
Mutual labels:  date, daterange, daterangepicker
react-daterange-picker
A react date range picker to using @material-ui. Live Demo: https://flippingbitss.github.io/react-daterange-picker/
Stars: ✭ 85 (+25%)
Mutual labels:  date, daterange
React Daterange Picker
A date range picker for your React app.
Stars: ✭ 259 (+280.88%)
Mutual labels:  date, daterange
React Infinite Calendar
✨ Infinite scrolling date-picker built with React, with localization, range selection, themes, keyboard support, and more.
Stars: ✭ 3,828 (+5529.41%)
Mutual labels:  date, range
rn-date-range
date picker component for react native
Stars: ✭ 16 (-76.47%)
Mutual labels:  date, daterange
React Nice Dates
A responsive, touch-friendly, and modular date picker library for React.
Stars: ✭ 924 (+1258.82%)
Mutual labels:  date, daterangepicker
Vue Ctk Date Time Picker
VueJS component to select dates & time, including a range mode
Stars: ✭ 707 (+939.71%)
Mutual labels:  date, range
Persianrangedatepicker
Persian range date picker for android.
Stars: ✭ 48 (-29.41%)
Mutual labels:  date, range
Angular Datetime Range
πŸ“… Angular directive for datetime range input
Stars: ✭ 27 (-60.29%)
Mutual labels:  range, daterange
Singledateandtimepicker
You can now select a date and a time with only one widget !
Stars: ✭ 921 (+1254.41%)
Mutual labels:  date, range
Ngx Daterangepicker Material
Pure Angular 2+ date range picker with material design theme, a demo here:
Stars: ✭ 169 (+148.53%)
Mutual labels:  daterange, daterangepicker
react-native-daterange-picker
A React Native component for picking date ranges or single dates.
Stars: ✭ 86 (+26.47%)
Mutual labels:  range, daterange
React Datetimerange Picker
A datetime range picker for your React app.
Stars: ✭ 82 (+20.59%)
Mutual labels:  date, daterange

react-native-date-ranges

npm version npm downloads

Getting started

$ npm install react-native-date-ranges --save

alt text

Usage

import DatePicker from 'react-native-date-ranges';

//range picker
<DatePicker
	style={ { width: 350, height: 45 } }
	customStyles = { {
		placeholderText:{ fontSize:20 } // placeHolder style
		headerStyle : {  },			// title container style
		headerMarkTitle : { }, // title mark style 
		headerDateTitle: { }, // title Date style
		contentInput: {}, //content text container style
		contentText: {}, //after selected text Style
	} } // optional 
	centerAlign // optional text will align center or not
	allowFontScaling = {false} // optional
	placeholder={'Apr 27, 2018 β†’ Jul 10, 2018'}
	mode={'range'}
/>

//single picker
<DatePicker
	style={ { width: 350, height: 45 } } // default width will be equal to placeholder text width
	customStyles = { {
		placeholderText:{ fontSize:20 }, // placeHolder style
		headerStyle : {  },			// title container style
		headerMarkTitle : { }, // title mark style 
		headerDateTitle: { }, // title Date style
		contentInput: {}, //content text container style
		contentText: {}, //after selected text style
                monthPickerText: {}, //focused month picker text style
                datePickerText: {}, //calendar dates text style
                dayNameText: {} //day of week title text style (M, T, W, T, F, S, S)
	} } // optional 
	centerAlign // optional text will align center or not
	allowFontScaling = {false} // optional
	placeholder={'Apr 27, 2018'}
	selectedBgColor="black"
	selectedTextColor="blue"
        calendarBgColor="black"
/>


//customButton usage...
export default class NewPicker extends React.Component{
	
	customButton = (onConfirm) => (
		<Button
			onPress={onConfirm}
			style={{ container:{ width:'80%', marginHorizontal:'3%' }, text:{ fontSize: 20 } }}
			primary
			text={'送出'}
		/>
	)

  render(){
    const {
      ...rest
    } = this.props;
    return(
      <DatePicker
        ref = {(ref)=> this.picker = ref}
        {...rest}
        customButton = {this.customButton}
      />
    )
  }
} 

Props

Prop Type Description
placeholder String optional.
customStyles Object optional. customize style e.g.({ placeholderText:{}, headerStyle:{} ... })
style Object Optional. date picker's style
onConfirm Function Optional. call function after click button, that would return a date object {startDate:'', endDate:''} e.g( value=>console.log(value))
calendarBgColor String Optional. custom the calendar view background color e.g {"black"}
selectedBgColor String Optional. custom your selected date background color e.g {"black"}
selectedTextColor String Optional. custom your selected date text color e.g {"black"}
ButtonStyle Object Optional. custom your save button container style
ButtonTextStyle Object Optional. custom your save button Text style
returnFormat String Optional. custom your datetime format e.g.('YYYY/MM/DD') at onConfirm
headFormat String Optional. custom your datetime format showing at headBlock e.g.('YYYY/MM/DD')
outFormat String Optional. custom your datetime format showing at outline touchable filed e.g.('YYYY/MM/DD')
mode String one of ['range', 'single'] , default as single
customButton component Optional (total custom your button component)e.g.(<Button></Button>)
blockBefore Bool optional. default is false, decide blocke date before today or not
markText String optional. default is "選擇ζ—₯期", you can custom this prop to label text with ur own
buttonText String optional. you can modify default button't label with your own
blockAfter Bool optional. default is false, decide blocke date after today or not
dateSplitter String optional. default is '->', decide custom dateSplitter with String
....
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].