0.1.2 • Published 2 years ago

rn-wheel-selector v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rn-wheel-selector

wheel-picker only Android is supported

developed on the basis of AigeStudio/WheelPicker

Installation

npm install rn-wheel-selector

yarn add rn-wheel-selector

Usage

import { WheelPickerView } from 'rn-wheel-selector';

<WheelPickerView data={[]} onValueChange={(value) => {}} />;

Props

NameDescriptionDetail
dataData source{lebal: string, value: string}[]
styleStyleStyleProp\<ViewStyle>
valueSelected valuestring
visibleItemCountVisible item countnumber
cyclicLoop scrollboolean
selectedItemTextColorSelected item text colorstring
itemTextColorUnselected item text colorstring
itemTextSizeItem text size (unit dp)number
itemSpaceItem vertical direction space (unit dp)number
indicatorDisplay indicatorboolean
indicatorSizeIndicator line height (unit dp)number
indicatorColorIndicator line colorstring
curvedCurved styleboolean
itemAlignItem text aligncenter | left | right
itemClickItem click to selectboolean
onValueChangeValue change callback(value: string) => void

License

MIT

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago