1.0.5 • Published 6 years ago

react-native-chonse-select v1.0.5

Weekly downloads
8
License
ISC
Repository
github
Last release
6 years ago

react-native-chonse-select

react native chonse select tab horizontal

Atom

Install

npm install --save react-native-chonse-select
yarn add react-native-chonse-select

Usage

Import library

import { ChonseSelect } from 'react-native-chonse-select';

Create data

const data = [
	{
		value:'0',
		label:'Male'
	},
	{
		value:'1',
		label:'Female'
	}
]

Render components

<ChonseSelect
	height={35}
	style={{ marginLeft: 20, marginBottom: 10 }}
	data={data}
	initValue={'0'}
	onPress={(item) => this.setState({ gender: item.value })}
/>

Proptypes

PropsDescriptionDefault
dataInitialize the item listnonerequired
initValueinitialize the default datanonerequired
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago