{"id":16810870,"url":"https://github.com/johan-dutoit/react-native-week-selector","last_synced_at":"2025-07-24T00:40:07.332Z","repository":{"id":33026469,"uuid":"150242035","full_name":"Johan-dutoit/react-native-week-selector","owner":"Johan-dutoit","description":"Customisable week selector for react native","archived":false,"fork":false,"pushed_at":"2022-12-02T12:30:16.000Z","size":707,"stargazers_count":4,"open_issues_count":14,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T07:12:15.159Z","etag":null,"topics":["react-native","selector","week-view"],"latest_commit_sha":null,"homepage":"","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/Johan-dutoit.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":"2018-09-25T09:43:09.000Z","updated_at":"2022-11-21T18:35:26.000Z","dependencies_parsed_at":"2023-01-14T23:06:37.278Z","dependency_job_id":null,"html_url":"https://github.com/Johan-dutoit/react-native-week-selector","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/Johan-dutoit%2Freact-native-week-selector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Johan-dutoit%2Freact-native-week-selector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Johan-dutoit%2Freact-native-week-selector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Johan-dutoit%2Freact-native-week-selector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Johan-dutoit","download_url":"https://codeload.github.com/Johan-dutoit/react-native-week-selector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244898190,"owners_count":20528331,"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":["react-native","selector","week-view"],"created_at":"2024-10-13T10:16:54.551Z","updated_at":"2025-03-22T02:32:00.038Z","avatar_url":"https://github.com/Johan-dutoit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-week-selector\n\nA simple and customisable week selector\n\n![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)\n[![NPM Version](https://img.shields.io/npm/v/react-native-week-selector.svg?style=flat)](https://www.npmjs.com/package/react-native-week-selector)\n[![NPM Downloads](https://img.shields.io/npm/dm/react-native-week-selector.svg?style=flat)](https://www.npmjs.com/package/react-native-week-selector)\n\n\u003ca name='top'/\u003e\n\n## Quick Access\n\n- \u003ca href='#install'\u003eInstallation\u003c/a\u003e\n- \u003ca href='#preview'\u003ePreview\u003c/a\u003e\n- \u003ca href='#usage'\u003eUsage\u003c/a\u003e\n- \u003ca href='#properties'\u003eProperties\u003c/a\u003e\n- \u003ca href='#contributing'\u003eContributing\u003c/a\u003e\n\n## \u003ca name='install'\u003eInstallation\u003c/a\u003e\n\nInstall the module with:\n\n```\nnpm install react-native-week-selector --save\n```\n\n## \u003ca name='preview'\u003ePreview\u003c/a\u003e\n\nTry it on [Expo](https://snack.expo.io/@johan-dev/react-native-week-selector)\n\n\u003c!--\n\n![](https://github.com/Johan-dutoit/react-native-week-selector/blob/master/preview.gif) --\u003e\n\n## \u003ca name='usage'\u003eUsage\u003c/a\u003e\n\nSimply import the component\n\n```js\nimport WeekSelector from 'react-native-week-selector';\n```\n\nThen use as follows\n\n```js\n\u003cWeekSelector /\u003e\n```\n\n###### \u003ca href='#top'\u003eTop\u003c/a\u003e\n\n## \u003ca name='properties'\u003eProperties\u003c/a\u003e\n\n| Prop                         | Description                                                    | Default            |\n| ---------------------------- | -------------------------------------------------------------- | ------------------ |\n| **`date`**                   | Set initial date                                               | `new Date()`       |\n| **`containerStyle`**         | Additional style for the container                             | `undefined`        |\n| **`selectorContainerStyle`** | Additional style for the selector containers                   | `undefined`        |\n| **`dateContainerStyle`**     | Additional style for the date container                        | `undefined`        |\n| **`textStyle`**              | Additional style for the date text                             | `undefined`        |\n| **`whitelistRange`**         | 2 values indicating the earliest/latest the user can change to | `[]`               |\n| **`onWeekChanged`**          | Event triggered when changing week                             | `undefined`        |\n| **`weekStartsOn`**           | Which day does the week start on                               | `1` (Monday)       |\n| **`renderPreviousSelector`** | Override the default previous selector                         | `undefined`        |\n| **`renderNextSelector`**     | Override the default next selector                             | `undefined`        |\n| **`dayFormat`**              | Display format for the day                                     | `DD` (05)          |\n| **`monthFormat`**            | Display format for the month                                   | `MMMM` (September) |\n\n\u003c!-- |**`onPreviousPress`**|Event triggered when pressing the left selector|`undefined`|\n|**`onNextPress`**|Event triggered when pressing the right selector|`undefined`| --\u003e\n\n###### \u003ca href='#top'\u003eTop\u003c/a\u003e\n\n## \u003ca name='#Contributing'\u003eContributing\u003c/a\u003e\n\nFeel free to do pull requests if a certain feature you want is missing. We accept all PR's that are enhancements to the project.\n\n###### \u003ca href='#top'\u003eTop\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohan-dutoit%2Freact-native-week-selector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohan-dutoit%2Freact-native-week-selector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohan-dutoit%2Freact-native-week-selector/lists"}