2.0.0 • Published 2 months ago

rn-cascade-picker v2.0.0

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

rn-cascade-picker

A cascade picker component written in pure JavaScript for React Native

Latest Version on NPM npm github issues github closed issues

Installation

yarn add rn-cascade-picker

Peer Dependencies

"react": ">= 16.13.1",
"react-native": ">= 0.63.4"

Usage

# demo
cd example
yarn
yarn ios

Props

PropTypeDefaultDescription
visibleBooleanfalsedetermine whether Picker is visible or not
dataArray<{value, label, children: Array}>-data source
valueArray-the value, the format is value1, value2, value3, corresponds to the level value of the data source
colsNumber3col numbers
titleString-title
cancelTextStringcancelcancel text
confirmTextStringconfirmconfirm text
titleTextStyleObject-style of title text
cancelTextStyleObject-style of cancel text
confirmTextStyleObject-style of confirm text
onCancel(): void-cancel handler
onConfirm(val): void-confirm handler

Contribution

If you want to add some features, feel free to submit PR.

License

MIT.

2.0.0

2 months ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.5

2 years ago

1.0.4

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