0.1.1 • Published 11 months ago

@react-native-hero/picker v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@react-native-hero/picker

Getting started

Install the library using either Yarn:

yarn add @react-native-hero/picker

or npm:

npm install --save @react-native-hero/picker

Link

  • React Native v0.60+

For iOS, use cocoapods to link the package.

run the following command:

$ cd ios && pod install

For android, the package will be linked automatically on build.

  • React Native <= 0.59

run the following command to link the package:

$ react-native link @react-native-hero/picker

Example

import {
  Picker
} from '@react-native-hero/picker'

<Picker
  height={300}
  options={[
    { text: 'displayed text', value: 'support string or number' },
    { text: '2', value: 'string' },
    { text: '3', value: 3 },
  ]}
  onChange={data => {
    data.index
    data.option
  }}
  style={{
    backgroundColor: '#eee'
  }}

  // optional
  selectedIndex={0}
  color="#000"
  fontSize={16}
  rowHeight={44}
/>
0.1.1

11 months ago

0.1.0

2 years ago

0.0.9

3 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.3

5 years ago

0.0.4

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago