fateh999 / react-native-paper-dropdown

Dropdown using react native paper TextInput and Menu
MIT License
130 stars 74 forks source link

Is there a way to change component height? #19

Closed dcanora closed 3 years ago

dcanora commented 3 years ago

Sorry if I'm missing it, but is there a way to change the base component height? TIA.

fateh999 commented 3 years ago

Did you try modifying style using the dropDownStyle prop

dcanora commented 3 years ago

dropDownStyle={{height: XX}} changed the height of the dropdown that's displayed when clicked, not the base component itself. Is there something else I can try?

Thanks!

Parth15Ordex commented 3 years ago

@dcanora you can do it using inputProps like below

inputProps={{style : {height : 40}}}

dcanora commented 3 years ago

@Parth15Ordex - Ah! That did it. Thank you very much!