# @wniemiec-component-reactnative/weekday-selector

> Component that lets you select days of the week

Latest version **1.0.5** (published 2021-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wniemiec-component-reactnative/weekday-selector
pnpm add @wniemiec-component-reactnative/weekday-selector
yarn add @wniemiec-component-reactnative/weekday-selector
bun add @wniemiec-component-reactnative/weekday-selector
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2021-08-10 |
| First published | 2021-08-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 164.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | William Niemiec |
| Maintainers | williamniemiec |
| Keywords | wniemiec, component, reactnative, weekday-selector, weekday, selector, days-of-week |

## Links

- npm: https://www.npmjs.com/package/@wniemiec-component-reactnative/weekday-selector
- Repository: https://github.com/wniemiec-component-reactnative/weekday-selector
- Issues: https://github.com/wniemiec-component-reactnative/weekday-selector/issues
- npm.io page: https://npm.io/package/@wniemiec-component-reactnative/weekday-selector

## Dependencies (1)

- [@wniemiec-component-reactnative/selectable-button](https://npm.io/package/@wniemiec-component-reactnative/selectable-button.md) ^1.0.0

## Recent versions

- 1.0.5 (latest) — 2021-08-10
- 1.0.4 — 2021-08-10
- 1.0.3 — 2021-08-06
- 1.0.2 — 2021-08-06
- 1.0.1 — 2021-08-05
- 1.0.0 — 2021-08-05

## README

![](https://github.com/wniemiec-component-reactnative/weekday-selector/blob/master/docs/img/logo/logo.jpg)

<h1 align='center'>Weekday selector</h1>
<p align='center'>Component that lets you select days of the week.</p>
<p align="center">
	<a href="https://github.com/wniemiec-component-reactnative/weekday-selector/actions/workflows/windows.yml"><img src="https://github.com/wniemiec-component-reactnative/weekday-selector/actions/workflows/windows.yml/badge.svg" alt=""></a>
	<a href="https://github.com/wniemiec-component-reactnative/weekday-selector/actions/workflows/macos.yml"><img src="https://github.com/wniemiec-component-reactnative/weekday-selector/actions/workflows/macos.yml/badge.svg" alt=""></a>
	<a href="https://github.com/wniemiec-component-reactnative/weekday-selector/actions/workflows/ubuntu.yml"><img src="https://github.com/wniemiec-component-reactnative/weekday-selector/actions/workflows/ubuntu.yml/badge.svg" alt=""></a>
	<a href="https://reactnative.dev/"><img src="https://img.shields.io/badge/React Native-0.60+-D0008F.svg" alt="React Native compatibility"></a>
	<a href="https://www.npmjs.com/package/@wniemiec-component-reactnative/weekday-selector"><img src="https://img.shields.io/npm/v/@wniemiec-component-reactnative/weekday-selector" alt="Release"></a>
	<a href="https://github.com/wniemiec-component-reactnative/weekday-selector/blob/master/LICENSE"><img src="https://img.shields.io/github/license/wniemiec-component-reactnative/weekday-selector" alt="License"></a>
</p>
<hr />

## ❇ Introduction
React Native component that lets you select days of the week.

## 🖼 Gallery

<div style="display: flex; flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap">

<img height=400 src="https://raw.githubusercontent.com/wniemiec-component-reactnative/weekday-selector/master/docs/img/screens/img3.png" alt="image 3" />
<br />
<img height=400 src="https://raw.githubusercontent.com/wniemiec-component-reactnative/weekday-selector/master/docs/img/screens/img1.png" alt="image 1" />

<img height=400 src="https://raw.githubusercontent.com/wniemiec-component-reactnative/weekday-selector/master/docs/img/screens/img2.png" alt="image 2" />

<img height=400 src="https://raw.githubusercontent.com/wniemiec-component-reactnative/weekday-selector/master/docs/img/screens/img4.png" alt="image 4" />
</div>

## ❓ How to use
1. Install the component
```
$ npm install --save @wniemiec-component-reactnative/weekday-selector
```

2. Import the component
```
import WeekdaySelector from '@wniemiec-component-reactnative/weekday-selector';
```

3. Use it
```
[...]
function handleWeekDay(weekday, selected) {
  if (selected)
    alert('You selected: ' + weekday);
  else
    alert('You deselected: ' + weekday);
}

<WeekdaySelector 
  onPress={handleWeekDay}
/>
[...]
```

## 📖 Documentation
|        Property        |Type|Description|Default|
|----------------|-------------------------------|-----------------------------|--------|
|onPress |`function(number, bool): void`|Function that is called when a weekday is selected|`null`|
|reduced |`bool`|Indicates whether the days of the week should be displayed in abbreviated form |`false`|
|selectedOps |`array: number`|Pre-selected weekdays (starting with 0) |`[]`|
|bgColor |`string`|Background color (in hexadecimal)  |`#01786F`|
|fgColor |`string`|Foreground color (in hexadecimal)  |`#FFFFFF`|

## 🚩 Changelog
Details about each version are documented in the [releases section](https://github.com/williamniemiec/wniemiec-component-reactnative/weekday-selector/releases).

## 🤝 Contribute!
See the documentation on how you can contribute to the project [here](https://github.com/wniemiec-component-reactnative/weekday-selector/blob/master/CONTRIBUTING.md).

## 📁 Files

### /
|        Name        |Type|Description|
|----------------|-------------------------------|-----------------------------|
|dist |`Directory`|Released versions|
|docs |`Directory`|Documentation files|
|src     |`Directory`| Source files|

---
_Source: https://npm.io/package/@wniemiec-component-reactnative/weekday-selector · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
