react-native-picker-select icon indicating copy to clipboard operation
react-native-picker-select copied to clipboard

Android dropdown mode

Open ugar0ff opened this issue 3 years ago • 3 comments

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',
    },

ugar0ff avatar May 14 '21 22:05 ugar0ff

I have the same question about fontFamily

RZsam avatar May 15 '21 08:05 RZsam

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

ugar0ff avatar May 27 '21 11:05 ugar0ff

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.

batmanashvili avatar Nov 22 '21 06:11 batmanashvili