Picker component for react-native applications
- Multiselect option
- Full customisation
npm i react-native-item-picker
import Selector from "react-native-item-picker"
<Selector
titleStyle={{
fontSize: 20,
color: "#8CC8E3"
}}
title="Pick your language"
style={
{
marginTop: 120,
alignSelf: "center"
}
}
collection={[
{
id: 0,
name: "Nepali"
},
{
id:1,
name: "中国"
},
{
id:2,
name: "नेपाली"
}
]}
/>
- collection: array of item (must be js object)
- title
- onSelected: callback function
- titleStyle
- style
- selectedIndex: selected index (should be int)
- multiSelect: boolean
- itemLabelStyle: React.PropTypes.object,
- itemTickImage: React.PropTypes.any,
- itemTickImageStyle: React.PropTypes.any,
- itemCheckedLabelStyle: React.PropTypes.any,
- itemTickContainerStyle: React.PropTypes.any
Issues are here -> https://github.com/BipinBhandari/react-native-item-picker/issues