lawnstarter / react-native-picker-select

🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
https://npmjs.com/package/react-native-picker-select
MIT License
1.74k stars 497 forks source link

Android dropdown mode #439

Open ugar0ff opened 3 years ago

ugar0ff commented 3 years ago

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',
    },
RZsam commented 3 years ago

I have the same question about fontFamily

ugar0ff commented 3 years ago

Also android has a property android:dropDownWidth for Spinner. Can you add this property too?

batmanashvili commented 2 years ago

Also this is the issue i currently face on Android dropdown.

258854638_648381743266045_7942679450896114105_n

  1. press dropdown before data inside dropdown is loaded,
  2. 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.