{"id":4264,"url":"https://github.com/lazaronixon/react-native-date-range-picker","last_synced_at":"2025-04-13T10:11:22.331Z","repository":{"id":73014602,"uuid":"126915340","full_name":"lazaronixon/react-native-date-range-picker","owner":"lazaronixon","description":"Simple date range picker extended from react-native-calendars","archived":false,"fork":false,"pushed_at":"2018-05-07T07:15:15.000Z","size":211,"stargazers_count":105,"open_issues_count":8,"forks_count":45,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-27T01:35:42.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lazaronixon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-03-27T02:12:41.000Z","updated_at":"2024-09-25T17:50:37.000Z","dependencies_parsed_at":"2023-03-13T20:18:57.882Z","dependency_job_id":null,"html_url":"https://github.com/lazaronixon/react-native-date-range-picker","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/lazaronixon%2Freact-native-date-range-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazaronixon%2Freact-native-date-range-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazaronixon%2Freact-native-date-range-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazaronixon%2Freact-native-date-range-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lazaronixon","download_url":"https://codeload.github.com/lazaronixon/react-native-date-range-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695481,"owners_count":21146956,"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":[],"created_at":"2024-01-05T20:17:06.260Z","updated_at":"2025-04-13T10:11:22.298Z","avatar_url":"https://github.com/lazaronixon.png","language":"JavaScript","funding_links":[],"categories":["Components","Others"],"sub_categories":["UI"],"readme":"# react-native-date-range-picker\nA simple Date Range Picker implemented with [react-native-calendars](https://github.com/wix/react-native-calendars).\n\n![date-range-picker](https://raw.githubusercontent.com/lazaronixon/react-native-date-range-picker/master/screenshots/shot1.png)\n\n## Getting started\n1. Install [react-native-calendars](https://github.com/wix/react-native-calendars/blob/master/README.md#installation).\n2. Copy DateRangePicker.js to your project.\n\n\n## Usage\n\n```javascript\nimport React, { Component } from 'react';\nimport { StyleSheet, View } from 'react-native';\nimport DateRangePicker from './DateRangePicker';\n\ntype Props = {};\nexport default class App extends Component\u003cProps\u003e {\n  render() {\n    return (\n      \u003cView style={styles.container}\u003e\n        \u003cDateRangePicker\n          initialRange={['2018-04-01', '2018-04-10']}\n          onSuccess={(s, e) =\u003e alert(s + '||' + e)}\n          theme={{ markColor: 'red', markTextColor: 'white' }}/\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    backgroundColor: '#F5FCFF',\n  }\n});\n```\n\n## Properties\n\n#### `initialRange([fromDate, toDate])`\nAn Initial range for component. The fromDate is used to set current month.\n\n#### `onSuccess(fromDate, toDate)`\nFunction executed when a valid range is selected.\n\n#### `theme`\nExtra theme properties.\n- markColor\n- markTextColor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazaronixon%2Freact-native-date-range-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flazaronixon%2Freact-native-date-range-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazaronixon%2Freact-native-date-range-picker/lists"}