🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@quantfive/react-native-horizontal-picker

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quantfive/react-native-horizontal-picker

Horizontally scrolling picker component for React Native

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
5
Created
Source

react-native-hpicker

<HorizontalPicker/> is a horizontally scrolling picker component. The goal of this component is to be a drop-in replacement for the bundled <Picker/>, but to introduce a nicer and more compact layout.

Installation

You install the picker by running npm install --save react-native-hpicker. Then, simply import the component: import HorizontalPicker from 'react-native-hpicker'; and you're good to go.

Example

import HorizontalPicker from 'react-native-hpicker';

/* ... */

<HorizontalPicker
  style={/* Whatever you want */}
  itemWidth={70}
  selectedValue={this.state.pickerValue}
  foregroundColor='gray'
  onChange={(pickerValue) => this.setState({pickerValue})}>
  <HorizontalPicker.Item label={1} value={1} />
  <HorizontalPicker.Item label={2} value={2} />
  <HorizontalPicker.Item label={3} value={3} />
</HorizontalPicker>

Component properties

TODO: List the props here.

TODOs

  • Improve docs
  • Add tests

Keywords

react-native

FAQs

Package last updated on 27 Jul 2019

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