1.0.29 • Published 7 months ago

react-native-roller-picker v1.0.29

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

⛏️ react-native-roller-picker

An awesome native wheel picker component for react-native.

Features

  • multiple columns ✅

  • looping ✅

  • Native Android components for improved performance ✅

  • Typescript ✅

Installation

yarn add react-native-roller-picker

Quick Start

import { Picker, PickerColumn, PickerItem } from 'react-native-roller-picker';

export const Demo = () => (
  <Picker>
    <PickerColumn>
      <PickerItem label="Monday" value="Monday" />
      <PickerItem label="Tuesday" value="Tuesday" />
      <PickerItem label="Wednesday" value="Wednesday" />
      <PickerItem label="Thursday" value="Thursday" />
      <PickerItem label="Friday" value="Friday" />
    </PickerColumn>
  </Picker>
);

Props

<Picker />

PropertyTypeDescriptionPlatformDefault
loopbooleanEnable looping optionsiOS, Androidfalse
styleobjectView style propiOS, Android
onChangefunctionA callback function when a value is changed in any columniOS, Android
numberOfLinesnumberThe number of lines for each row in a columniOS1
hasCurtainbooleanEnable the curtain to highlight the selected valueAndroidtrue
curtainColorstringColor of the curtainAndroidhsla(0, 0%, 0%, 0.1)
hasIndicatorbooleanEnable the indicator to highlight the selected valueAndroidtrue
indicatorColorstringColor of the indicatorAndroidhsla(0, 0%, 0%, 0.1)
indicatorSizenumberThe size of the indicatorAndroid1
itemSpacenumberThe amount of space between itemsAndroid12
textColorstringThe color of the item textAndroid#000000
textSizenumberThe size of the item textAndroid20

<PickerColumn />

PropertyTypeDescriptionPlatformDefault
selectedValuestring | numberThe selected valueiOS, Android
onChangefunctionA callback function if the value is changed in this columniOS, Android
widthnumberThe width of this columniOS, AndroidTakes up the available space

<PickerItem />

PropertyTypeDescriptionPlatformDefault
labelstringThe label of the itemiOS, Android
valuestring | numberThe value of the itemiOS, Android
testIDstringThe testID of the itemiOS
colorstringThe color of the item textiOS

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

1.0.29

7 months ago

1.0.28

7 months ago

1.0.25

7 months ago

1.0.19

7 months ago

1.0.18

7 months ago

1.0.17

7 months ago

1.0.16

7 months ago

1.0.22

7 months ago

1.0.21

7 months ago

1.0.20

7 months ago

1.0.24

7 months ago

1.0.23

7 months ago

1.0.15

7 months ago

1.0.14

7 months ago

1.0.13

7 months ago

1.0.12

12 months ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago