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

Style picker dialog height on Android #470

Open flora8984461 opened 2 years ago

flora8984461 commented 2 years ago

This is a nice library and works well with IOS. Is it possible to set maxHeight/Height for the picker dialog on Android? I have a long selection list and it will take up almost my whole screen. I tried with headlessAndroidContainer and viewContainer, both not working; and I have set the prop useNativeAndroidPickerStyle to false.

I also tried to change the style.xml but couldn't make it.

Thanks in advance!

Is your feature request related to a problem? Please describe.
I have a long selection list and it will take up almost my whole screen. I tried with headlessAndroidContainer and viewContainer, both not working; I also tried to set MaxHeight in pickerProps = {{ }}, it only changed the Input box height;

an example of the long list picker: 1637548464(1)

Describe the solution you'd like
I am thinking it would be nice we have a height / maxHeight and maybe also width/maxWidth in the PickerStyle.

Describe alternatives you've considered

Additional details
Add any other details or screenshots about the feature request here.

ThanhNam20 commented 2 years ago

Any updated ?

caglardurmus commented 1 year ago

Any updated ?

+1