1.0.29 • Published 11 days ago

react-native-roller-picker v1.0.29

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days 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

11 days ago

1.0.28

11 days ago

1.0.25

12 days ago

1.0.19

13 days ago

1.0.18

14 days ago

1.0.17

14 days ago

1.0.16

14 days ago

1.0.22

13 days ago

1.0.21

13 days ago

1.0.20

13 days ago

1.0.24

13 days ago

1.0.23

13 days ago

1.0.15

14 days ago

1.0.14

14 days ago

1.0.13

14 days ago

1.0.12

5 months ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago