react-native-picker-select
react-native-picker-select copied to clipboard
Android dropdown mode
Good day,
How I can change fontSize in dropdown item? These are my styles:
style={{
inputAndroidContainer: this.localStyles.viewContainer,
inputAndroid: this.localStyles.pickerTextStyle,
inputIOSContainer: this.localStyles.viewContainer,
inputIOS: this.localStyles.pickerTextStyle,
}}
pickerProps={{
mode: 'dropdown',
itemStyle: this.localStyles.pickerTextStyle,
}}
useNativeAndroidPickerStyle={false}
viewContainer: {
width: '100%',
height: 48,
padding: 8,
backgroundColor: '#FFFFFF',
},
pickerTextStyle: {
fontSize: 16,
color: '#000000',
},
I have the same question about fontFamily
Also android has a property android:dropDownWidth for Spinner. Can you add this property too?
Also this is the issue i currently face on Android dropdown.
- press dropdown before data inside dropdown is loaded,
- alignment happens based on header, so
dropdownWidth
is incorrect for any longer text than header and they are not fully shown.
please add property for controlling dropdown style on android devices.