# react-native-sliding-calendar-view

> Tested with react-native 0.20

Latest version **0.1.3** (published 2016-02-21) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2016-02-21 |
| First published | 2016-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sednev Michail |
| Maintainers | belobobr |
| Keywords | react-native, react-component, react-native, ios, calendar, scrollable |

## Links

- npm: https://www.npmjs.com/package/react-native-sliding-calendar-view
- npm.io page: https://npm.io/package/react-native-sliding-calendar-view

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) ^2.10.6

## Recent versions

- 0.1.3 (latest) — 2016-02-21
- 0.1.2 — 2016-02-21
- 0.1.1 — 2016-02-21
- 0.1.0 — 2016-02-21

## README

## react-native-sliding-calendar-view

Tested with react-native 0.20

## Add it to your project

1. Run `npm install react-native-sliding-calendar-view --save`
2. `var ScrollableCalendarView = require('react-native-sliding-calendar-view');`



## Demo
<a href="https://github.com/Belobobr/react-native-scrollable-calendar-view/blob/master/demo.gif"><img src="https://github.com/Belobobr/react-native-scrollable-calendar-view/blob/master/demo.gif" width="350"></a>

## Basic usage

```javascript
import SlidingCalendarView from 'react-native-sliding-calendar-view';

class SlidingCalendarViewExample extends React.Component {

  constructor(props) {
    super(props);
    this.state = {
      selectedDay: new Date(),
    }
  }

  render() {
    return <View style={styles.container}>
      <SlidingCalendarView
        selectedDay={this.state.selectedDay}
        onDaySelected={this.onDaySelected.bind(this)}
      >
        <View style={styles.content}>
          <Text>Past here your content</Text>
        </View>
      </SlidingCalendarView>
    </View>
  }

  onDaySelected(day) {
    this.setState({selectedDay: day});
  }
}
```

## Example

See
[examples/SlidingCalendarViewExample](https://github.com/Belobobr/react-native-scrollable-calendar-view/tree/master/examples/SlidingCalendarViewExample).

## Props

- **`selectedDay`** _(Date)_ - selectedDay
- **`onDaySelected`**  _(callback)_ - on selected day
---

**MIT Licensed**

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