Socket
Socket
Sign inDemoInstall

react-native-scrolling-menu

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-scrolling-menu

A horizontal scrolling menu for React Native.


Version published
Weekly downloads
19
increased by375%
Maintainers
1
Install size
45.9 kB
Created
Weekly downloads
 

Readme

Source

React Native Scrolling Menu

A horizontal scrolling menu for React Native.

Screenshot

Installation

npm install --save react-native-scrolling-menu

React Native

var ScrollingMenu = require('react-native-scrolling-menu');

Usage

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

KeyTypeDescription
itemsArrayAn array of items for the menu
callbackFunction(itemIndex)The callback function sends the index of the menu item selected
backgroundColorString (HEX)The background color of the menu
textColorString (HEX)The text color prior to being selected
selectedTextColorString (HEX)The text color of the selected item
itemSpacingNumberThe number of pixels between the menu items

Keywords

FAQs

Last updated on 20 Jul 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc