# react-native-scrolling-menu

> A horizontal scrolling menu for React Native.

Latest version **0.1.1** (published 2016-07-20) · GNU license · 0 weekly downloads

## Install

```sh
npm install react-native-scrolling-menu
pnpm add react-native-scrolling-menu
yarn add react-native-scrolling-menu
bun add react-native-scrolling-menu
```

## 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.1 |
| Published | 2016-07-20 |
| First published | 2016-05-20 |
| Weekly downloads | 0 |
| License | GNU |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 53 |
| Author | Michael Hirsch |
| Maintainers | hirsch |
| Keywords | react, react-native, navbar, navigation, menu, tabs, horizontal, scrolling |

## Links

- npm: https://www.npmjs.com/package/react-native-scrolling-menu
- Repository: https://github.com/ccm-innovation/react-native-scrolling-menu
- Homepage: https://github.com/ccm-innovation/react-native-scrolling-menu#readme
- Issues: https://github.com/ccm-innovation/react-native-scrolling-menu/issues
- npm.io page: https://npm.io/package/react-native-scrolling-menu

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2016-07-20
- 0.1.0 — 2016-05-31
- 0.0.6 — 2016-05-24
- 0.0.5 — 2016-05-20
- 0.0.4 — 2016-05-20
- 0.0.3 — 2016-05-20
- 0.0.2 — 2016-05-20
- 0.0.1 — 2016-05-20

## README

# React Native Scrolling Menu
> A horizontal scrolling menu for React Native.

![Screenshot](https://drive.google.com/uc?export=view&id=0BwAfqxmTWrImakRNWTBZZklBNmc)

## Installation
`npm install --save react-native-scrolling-menu`

## React Native
```JavaScript
var ScrollingMenu = require('react-native-scrolling-menu');
```

## Usage
```JavaScript
let items = ['Menu Item 1','Menu Item 2','Menu Item 3','Menu Item 4','Menu Item 5'];

onClick(itemIndex) {
  console.log("Selected: " + items[itemNum]);
}

render() {
  return (
    <ScrollingMenu
      items={items}
      callback={this.onClick.bind(this)}
      backgroundColor="#ffffff"
      textColor="#cccccc"
      selectedTextColor="#000000"
      itemSpacing={20} />
  );
}
```

## Props
|Key |Type |Description |
|--- |--- |--- |
|`items`|Array|An array of items for the menu|
|`callback`|Function(itemIndex)|The callback function sends the index of the menu item selected|
|`backgroundColor`|String (HEX)|The background color of the menu|
|`textColor`|String (HEX)|The text color prior to being selected|
|`selectedTextColor`|String (HEX)|The text color of the selected item|
|`itemSpacing`|Number|The number of pixels between the menu items|

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