1.1.3 • Published 6 years ago

value-picker-react-native v1.1.3

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

Value picker with specific UI

OIS

npm.io

ANDROID

npm.io

Install

npm install value-picker-react-native --save

Import

import ValuePicker from 'value-picker-react-native';

Usage

<ValuePicker sArray={['Item 0', 'Item 1', 'Item 2', 'Item 3', 'Item 4']} initialActiveIndex={5} activeItemCallback={()=>{console.log('callback to call on Arrow press')} mainColor={'#50c878'} sColor={'white'} arrowImgSrc={require('./valuePickerReactNative/images/arrowUp.png')} />

Properties

PropTypeOptionalDefaultDescription
textsArrayArraytrue'Item 0', 'Item 1', 'Item 2', 'Item 3', 'Item 4'Array of values will shown in picker.
initialActiveIndexnumbertrue3Active index. Index of text that will appear in picker firstly.
mainColorColortrue'#50c878'Color of active item background.
textsColorColortrue'black'Color of texts.
activeItemCallbackfunctiontrue()=>{}Callback to call on UP/DOWN click it called with 2 parameters (text, index).
1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago