Simple Wheel Picker for Android to use with react-native
npm install react-native-wheel-picker-simpleyarn add react-native-wheel-picker-simple
js
itemStyle={{
marginTop: -30,
backgroundColor: '#111111',
color: '#EEEEEE',
fontSize: 12,
fontFamily: "YourFontName"
}}
selectedItemTextFontFamily={'YourFontName'}
itemTextFontFamily={'YourFontName'}
selectedItemTextSize={12}
itemTextSize={12}
selectedItemTextColor={'#EEEEEE'}
indicatorColor={'#999999'}
selectedItem={selectedIndex}
data={onAddItem ? itemsModified : items}
onItemSelected={this.onItemSelected} />
`
iOS Specific style
itemStyle prop is applied only to iOS.
Android Specific style
You can add styles conditionally based on OS
`js
let wheelPickerWrapperStyle = [gs.centerChildren, gs.row, gs.centerAlongFlex];
if(Platform.OS === 'android')
wheelPickerWrapperStyle.push(s.wheelPickerWrapperAndroid;
``