Socket
Book a DemoInstallSign in
Socket

react-native-scrollable-tab-menu

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-scrollable-tab-menu

A variation of 'react-native-scrollable-tab-view' with a menu interface.

1.0.6
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-scrollable-tab-menu

A variation of 'react-native-scrollable-tab-view' with a menu interface.

Drawing

##Installation with yarn:

yarn add react-native-scrollable-tab-view
yarn add react-native-linear-gradient
react-native link

With npm:

npm install --save react-native-scrollable-tab-view
npm install --save react-native-linear-gradient
react-native link

##Simple Usage

import ScrollableTabMenu from 'react-native-scrollable-tab-menu'
...
render() {
  return (
    <ScrollableTabMenu>
      <Component1 title={"Rook"}/>
      <Component2 title={"Bishop"}/>
      <Component3 title={"Queen}/>
      <Component4 title={"King"}/>
      <Component5 title={"Pawn"}/>
    </ScrollableTabMenu>
  )
}
...

##Usage With Custom Props

import ScrollableTabMenu from 'react-native-scrollable-tab-menu'
...
render() {
  return (
    <ScrollableTabMenu
      locations={[0.0, 0.5, 1.0]}
      colors={["transparent", "white", "blue"]}  tabColor="red"
      backgroundImage={require('../images/myImage1.png')}
      menuBackgroundColor={Scheme.white(1.0)}
      menuImage={require('../images/myImage2.png')}
      menuFontStyle={{color: "red", fontSize: 20}}
      tabColor={"gray"}
    >
      <Component1 title={"Basketball"}/>
      <Component2 title={"Baseball"}/>
      <Component3 title={"Hockey}/>
      <Component4 title={"Football"}/>
      <Component5 title={"Soccer"}/>
    </ScrollableTabMenu>
  )
}
...

##PropTypes menuImage PropTypes.any
backgroundImage PropTypes.any
tabColor PropTypes.string
menuFontStyle Text.propTypes.style
menuContainerStyle View.propTypes.style
menuGradientlocations PropTypes.array
menuGradientColors PropTypes.array
blendDuration React.PropTypes.number
isAnimated React.PropTypes.bool

Keywords

scrollable

FAQs

Package last updated on 06 Feb 2017

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.