# react-native-daily-calendar

> test

Latest version **1.2.4** (published 2023-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-daily-calendar
pnpm add react-native-daily-calendar
yarn add react-native-daily-calendar
bun add react-native-daily-calendar
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2023-06-19 |
| First published | 2023-06-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 16.0.0 |
| Dependencies | 0 |
| Unpacked size | 137.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ajith Suresh |
| Maintainers | ajithsuresh |
| Keywords | react-native, ios, android, daily-calendar, calendar, date picker, month picker, rn, react-native-daily-calendar |

## Links

- npm: https://www.npmjs.com/package/react-native-daily-calendar
- Repository: https://github.com/ajith-mohan-dev/react-native-daily-calendar
- Homepage: https://github.com/ajith-mohan-dev/react-native-daily-calendar#readme
- Issues: https://github.com/ajith-mohan-dev/react-native-daily-calendar.git/issues
- npm.io page: https://npm.io/package/react-native-daily-calendar

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.2.4 (latest) — 2023-06-19
- 1.2.3 — 2023-06-19
- 1.1.3 — 2023-06-19
- 1.1.2 — 2023-06-18
- 1.1.1 — 2023-06-13
- 1.1.0 — 2023-06-13
- 1.0.11 — 2023-06-12
- 1.0.10 — 2023-06-12
- 1.0.9 — 2023-06-12
- 1.0.8 — 2023-06-12
- 1.0.7 — 2023-06-12
- 1.0.6 — 2023-06-12
- 1.0.5 — 2023-06-12
- 1.0.4 — 2023-06-12
- 1.0.3 — 2023-06-12
- … 3 more at https://npm.io/package/react-native-daily-calendar/versions

## README

# :control_knobs: react-native-daily-calendar

A highly customizable Month and Date Picker component for React Native using momentjs. Support this project with a ★ on [**Github**](https://github.com/ajith-mohan-dev/react-native-daily-calendar).

<img src="https://github.com/ajith-mohan-dev/react-native-daily-calendar/blob/develop/ezgif.com-gif-to-mp4.gif" alt="Alt text" width="200">

## :inbox_tray: Installation

You can install this package using either Yarn or NPM.

### <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/d/db/Npm-logo.svg/1200px-Npm-logo.svg.png" alt="Alt text" width="50">

```bash
npm install react-native-daily-calendar
```

### <img src="https://raw.githubusercontent.com/yarnpkg/assets/master/yarn-kitten-full.png" alt="Alt text" width="50">

```bash
yarn add react-native-daily-calendar
```

**react-native-daily-calendar** requires [moment](https://www.npmjs.com/package/moment/) to be installed, which is a peer dependency.

## :bulb: Usage

```bash
import DailyCalendar from 'react-native-daily-calendar';

function App() {
   const [selectedDate, setSelectedDate] = useState(moment().format("DD-MM-YYYY"))
  return (
   <DailyCalendar
     onDateChangeCalendar={value => {
     setSelectedDate(moment(value, 'YYYY-MM-DD').format('DD-MM-YYYY'));
     }}
    />
  );
}
```

<img src="https://github.com/ajith-mohan-dev/react-native-daily-calendar/blob/develop/ezgif.com-gif-to-mp4.gif" alt="Alt text" width="250">

## :book: Props

| Property              | Type        | Default            | Description                                       |
| :-------------------- | :---------- | :----------------- | :------------------------------------------------ |
| isMonthPickerReq      | bool        | true               | Boolean for month picker.                         |
| isDatePickerReq       | bool        | true               | Boolean for date picker.                          |
| onDateChangeCalendar  | function    | null               | Callback called when the user changing the date.  |
| onMonthChangeCalendar | function    | null               | Callback called when the user changing the month. |
| monthContainerStyle   | ViewStyle   | null               | Custom styling for month container                |
| LeftArrowIcon         | JSX.Element | Default Icon       | Month Picker Right Icon slider.                   |
| RightArrowIcon        | JSX.Element | Default Icon       | Month Picker left Icon slider.                    |
| monthTextStyle        | TextStyle   | -                  | Custom styling for Month Name.                    |
| dateStyle             | TextStyle   | -                  | Custom styling for date.                          |
| dayStyle              | TextStyle   | -                  | Custom styling for day.                           |
| activeDateColor       | String      | -                  | Background color for active date.                 |
| dateContainerStyle    | ViewStyle   | -                  | Custom styling for date tabs.                     |
| dayFormat             | string      | ddd                | Custom day format for days                        |
| CustomMonthComponent  | JSX.Element | Default Month View | Custom Month Container                            |

## :art: Demo

You can try the [example app](https://github.com/ajith-mohan-dev/react-native-daily-calendar/tree/develop/example) by cloning this repo and running the following commands:

```sh
cd example
yarn install
npx expo start
```

## :handshake: Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request if you find a bug or have a feature request. See the [contributing guide](https://github.com/ajith-mohan-dev/react-native-daily-calendar/blob/develop/CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## :scroll: License

This project is licensed under the [MIT License](https://github.com/ajith-mohan-dev/react-native-daily-calendar/blob/develop/LICENSE).

---
_Source: https://npm.io/package/react-native-daily-calendar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
