{"id":26672134,"url":"https://github.com/faichou/react-native-slideable-calendar-strip","last_synced_at":"2025-08-10T13:17:23.523Z","repository":{"id":42879168,"uuid":"134230573","full_name":"FaiChou/react-native-slideable-calendar-strip","owner":"FaiChou","description":"A react native calendar strip that support swipe!","archived":false,"fork":false,"pushed_at":"2021-05-09T16:50:14.000Z","size":198,"stargazers_count":98,"open_issues_count":4,"forks_count":56,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-06T17:58:01.200Z","etag":null,"topics":["calendar","reactnative","swipe"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-slideable-calendar-strip","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/FaiChou.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}},"created_at":"2018-05-21T06:55:52.000Z","updated_at":"2024-12-16T15:37:35.000Z","dependencies_parsed_at":"2022-07-09T02:00:52.991Z","dependency_job_id":null,"html_url":"https://github.com/FaiChou/react-native-slideable-calendar-strip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FaiChou/react-native-slideable-calendar-strip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FaiChou%2Freact-native-slideable-calendar-strip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FaiChou%2Freact-native-slideable-calendar-strip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FaiChou%2Freact-native-slideable-calendar-strip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FaiChou%2Freact-native-slideable-calendar-strip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FaiChou","download_url":"https://codeload.github.com/FaiChou/react-native-slideable-calendar-strip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FaiChou%2Freact-native-slideable-calendar-strip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269730589,"owners_count":24466053,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["calendar","reactnative","swipe"],"created_at":"2025-03-26T00:48:32.050Z","updated_at":"2025-08-10T13:17:23.495Z","avatar_url":"https://github.com/FaiChou.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## react-native-slideable-calendar-strip [![Build Status](https://travis-ci.org/FaiChou/react-native-slideable-calendar-strip.svg?branch=master)](https://travis-ci.org/FaiChou/react-native-slideable-calendar-strip) [![npm](https://img.shields.io/npm/v/npm.svg)](https://www.npmjs.com/package/react-native-slideable-calendar-strip) [![juejin](https://badge.juejin.im/entry/5b04334a6fb9a07aaa119aac/likes.svg?style=flat-square)](https://juejin.im/post/5b041fe66fb9a07aa43c8c8c) ![license](https://img.shields.io/github/license/mashape/apistatus.svg)\n\n\n\u003cimg src=\"https://raw.githubusercontent.com/FaiChou/react-native-slideable-calendar-strip/master/Example/en.png\" width=\"500\"/\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/FaiChou/react-native-slideable-calendar-strip/master/Example/zh.png\" width=\"500\"/\u003e\n\n[Live Calendar Demo.mp4](https://raw.githubusercontent.com/FaiChou/faichou.github.io/master/img/qiniu/calendar-strip.MP4)\n\n### Feature\n\n1. Support pull down gesture\n2. Support go today\n3. Support support marked date\n4. Support Chinese lunar\n5. Support current week of this year (W21)\n6. Support both `Date` and Date string `('2018-01-01')` types\n7. Support customized start of week\n\n### How to use\n\nInstall package:\n\n```\nnpm install --save react-native-slideable-calendar-strip\n# or\nyarn add react-native-slideable-calendar-strip\n```\n\nImport to your app:\n\n```\nimport CalendarStrip from 'react-native-slideable-calendar-strip';\n```\n\nUse the component:\n\n```\n\u003cCalendarStrip\n  isChinese\n  showWeekNumber\n  showChineseLunar\n  selectedDate={this.state.selectedDate}\n  onPressDate={(date) =\u003e {\n    this.setState({ selectedDate: date });\n  }}\n  onPressGoToday={(today) =\u003e {\n    this.setState({ selectedDate: today });\n  }}\n  onSwipeDown={() =\u003e {\n    alert('onSwipeDown');\n  }}\n  markedDate={['2018-05-04', '2018-05-15', '2018-06-04', '2018-05-01']}\n  weekStartsOn={1} // 0,1,2,3,4,5,6 for S M T W T F S, defaults to 0\n/\u003e\n```\n\n### API\n\nAPI name         | Desc\n-----------------|----------------------------------------\nselectedDate     | The current selected date, Required.\nonPressDate      | Press date callback, Optional, `(date) =\u003e {}`\nonPressGoToday   | Press gotoday button callback, Optional, `(today) =\u003e {}`\nmarkedDate       | Marked highlighted date array, Optional, `['2018-01-01', '2018-02-01']`\nonSwipeDown      | Swipe down gesture callback, Optional, `() =\u003e {}`\nisChinese        | Show Chinese Week or not, default false,\nshowChineseLunar | Show Chinese Lunar or not, default false,\nshowWeekNumber   | Show week number or not, default false,\nweekStartsOn     | Set start of week, Optional, defaults to 0, `0 1 2 3 4 5 6` for `S M T W T F S`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaichou%2Freact-native-slideable-calendar-strip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaichou%2Freact-native-slideable-calendar-strip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaichou%2Freact-native-slideable-calendar-strip/lists"}