hoaphantn7604 / react-native-element-dropdown

A react-native dropdown component easy to customize for both iOS and Android.
MIT License
861 stars 154 forks source link

[Question] Issue related to dropdown height #255

Open dennisxddxdd opened 3 months ago

dennisxddxdd commented 3 months ago

I am trying to show something long in the dropdown box. When an item is selected, the dropdown is unable to show all the selected text. I tried to add selectedTextProps={{ numberOfLines: 3, style: { flex: 1 } }} as the dropdown props, the text is not fully shown. I also tried to set a larger height for the dropdown box component, but the height of the area for displaying the text and the icon seems fixed, the text is still truncated even though there is empty spaces in the dropdown box. I read the source code and found that this seems limiting the height of the selectedText. I wonder if there is other better ways to solve my problem or it requires the change of source code?

ganpatmalekar commented 1 month ago

Same issue I'm facing, If the selected text length is long then after selecting, it is getting truncating.