- Notifications
You must be signed in to change notification settings - Fork1
Gregorian and Jalali customizable date picker as a horizontal timeline. inspired by@sobimor
License
NotificationsYou must be signed in to change notification settings
AwrminKhodaei/react-native-horizontal-datepicker
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Jalali and gregorian react native horizontal datepicker 🔥
npm install @awrminkhodaei/react-native-horizontal-datepickeroryarn add @awrminkhodaei/react-native-horizontal-datepicker
importHorizontalDatepickerfrom'@awrminkhodaei/react-native-horizontal-datepicker';// ...<HorizontalDatepickermode="gregorian"startDate={newDate('2020-08-20')}endDate={newDate('2020-08-31')}initialSelectedDate={newDate('2020-08-22')}onSelectedDateChange={(date)=>setSelectedDate(date)}selectedItemWidth={170}unselectedItemWidth={38}itemHeight={38}itemRadius={10}selectedItemTextStyle={styles.selectedItemTextStyle}unselectedItemTextStyle={styles.selectedItemTextStyle}selectedItemBackgroundColor="#222831"unselectedItemBackgroundColor="#ececec"flatListContainerStyle={styles.flatListContainerStyle}/>;
mode(String) : defines datepickers mode,jalali | gregorianstartDate(Date): starting date of picker, ex:startDate= new Date('2020-12-01')endDate(Date): ending date of picker, ex:endDate= new Date('2020-12-10')onSelectedDateChange(Function): callback when pressing an item on picker withselectedDatevalueinitialSelectedDate(Date): sets default selected item on pickerselectedItemWidth(Number): width of selected item on picker defaults to 170unselectedItemWidth(Number): width of unselected item on picker defaults to 38itemHeight(Number): sets all items height on picker defaults to 38itemRadius(Number): sets all items radius on picker defaults to 10selectedItemTextStyle(TextStyle): selected items text style, ex:selectedItemTextStyle={{fontFamily: 'nunito'}}unselectedItemTextStyle(TextStyle): unselected items text style, ex:selectedItemTextStyle={{fontFamily: 'nunito'}}selectedItemBackgroundColor(String): sets selected items background color, defaults to#16213eunselectedItemBackgroundColor(String): sets unselected items background color, defaults to#fffflatListContainerStyle(ViewStyle): setscontentContainerStlyeof FlatList containg date items
See thecontributing guide to learn how to contribute to the repository and the development workflow.
MIT
About
Gregorian and Jalali customizable date picker as a horizontal timeline. inspired by@sobimor
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.

