{"id":21724835,"url":"https://github.com/melihmucuk/rn-date-range","last_synced_at":"2025-10-18T05:25:51.909Z","repository":{"id":57355451,"uuid":"90120649","full_name":"melihmucuk/rn-date-range","owner":"melihmucuk","description":"date picker component for react native","archived":false,"fork":false,"pushed_at":"2018-05-08T13:17:53.000Z","size":94,"stargazers_count":16,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T22:52:22.803Z","etag":null,"topics":["date","datepicker","daterange","react-native"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/melihmucuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-03T07:26:15.000Z","updated_at":"2019-12-19T10:27:23.000Z","dependencies_parsed_at":"2022-09-13T04:41:58.325Z","dependency_job_id":null,"html_url":"https://github.com/melihmucuk/rn-date-range","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melihmucuk%2Frn-date-range","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melihmucuk%2Frn-date-range/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melihmucuk%2Frn-date-range/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melihmucuk%2Frn-date-range/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melihmucuk","download_url":"https://codeload.github.com/melihmucuk/rn-date-range/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643043,"owners_count":21138353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["date","datepicker","daterange","react-native"],"created_at":"2024-11-26T03:13:42.066Z","updated_at":"2025-10-18T05:25:51.820Z","avatar_url":"https://github.com/melihmucuk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rn-date-range [![NPM Version](https://img.shields.io/npm/v/rn-date-range.svg?style=flat)](https://www.npmjs.com/package/rn-date-range) [![NPM Downloads](https://img.shields.io/npm/dm/rn-date-range.svg?style=flat)](https://www.npmjs.com/package/rn-date-range)\nDate picker component for react native. Forked and edited from [react-native-day-picker](https://github.com/ivanchenko/react-native-day-picker)\n \n![screenshot](https://github.com/melihmucuk/rn-date-range/blob/master/ss.png?raw=true)\n\n## Getting Started\n\n```sh\n$ npm install rn-date-range --save\n```\n\n\u003e **Important:** When you build app in release mode, calendar works smooth without any lags.\n\n## Usage\n\n```javascript\nimport React, { Component } from 'react';\nimport {\n  AppRegistry,\n  StyleSheet,\n  View,\n} from 'react-native';\n\nimport Calendar from 'rn-date-range'; \n\nexport default class RNCalendarDemo extends Component {\n  render() {\n    return (\n      \u003cView style={styles.container}\u003e\n        \u003cCalendar /\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    justifyContent: 'center',\n    alignItems: 'center',\n    paddingTop: 30\n  },\n});\n\nAppRegistry.registerComponent('RNCalendarDemo', () =\u003e RNCalendarDemo);\n```\n## Properties\n\nAll properties are optional\n\n- **`onSelectionChange`** _(func)_ — Function which will be executed on day click. First param is clicked day date, second one previous clicked day, third one selected range.\n\n- **`startDate`** _(Date)_ — Date from which you can select dates. By default is **new Date()**.\n\n- **`width`** _(number)_ Calendars width, should be **divided on 7 without remainder** or may cause unpredictable behaviour.\n\n- **`selectFrom`** _(Date)_ — First day in range that will be selected from start.\n\n- **`selectTo`** _(Date)_ — Last day in range that will be selected from start.\n\n- **`monthsCount`** _(number)_ — Count of dates from current months to the last.\n\n- **`startFromMonday`** _(bool)_ — If true than months will started from monday.\n\n- **`monthsLocale`** _(arrayOf(string))_ — Strings for localization, which will be displayed in month header started from January.\n\n- **`weekDaysLocale`** _(arrayOf(string))_ — Strings for localization, which will be displayed in week day header, started from sunday.\n\n- **`isFutureDate`** _(boolean)_ — True if you want to select a future date. By default is **false**.=======\n\n- **`rangeSelect`** _(bool)_ — True if you want to select a range of dates. By default is true.\n\n\n### Colors\n \n- **`bodyBackColor`** _(string)_ — Calendar background color.\n\n- **`bodyTextColor`** _(string)_ — Calendar headers text color.\n\n- **`headerSepColor`** _(string)_ — Calendar header separator color.\n \n- **`dayCommonBackColor`** _(string)_ — Not selected day background color.\n\n- **`dayCommonTextColor`** _(string)_ — Not Selected day text color.\n \n- **`dayDisabledBackColor`** _(string)_ — Disabled day background color.\n\n- **`dayDisabledTextColor`** _(string)_ — Disabled day text color.\n \n- **`daySelectedBackColor`** _(string)_ — First and last day in range background color.\n\n- **`daySelectedTextColor`** _(string)_ — First and last day in range text color.\n \n- **`dayInRangeBackColor`** _(string)_ — In range day background color.\n\n- **`dayInRangeTextColor`** _(string)_ — In range day text color.\n\n- **`monthTextColor`** _(string)_ — Calendar month header text color.\n\n## Support\n\nEmail melihmucuk@gmail.com for support.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelihmucuk%2Frn-date-range","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelihmucuk%2Frn-date-range","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelihmucuk%2Frn-date-range/lists"}