vishaldhanotiya / react-native-modal-picker

This is a cross-platform picker with search bar for react native support both platform IOs and android
https://www.npmjs.com/package/rn-modal-picker
44 stars 18 forks source link

How to change the default height of modal picker #34

Closed harry021 closed 3 years ago

harry021 commented 3 years ago

For one or two items it shows a default height. And leave a blank space at the end. If we have more items in the flatlist it adjust its height according to them.

harry021 commented 3 years ago

Can you add listDataContainerStyle as a prop. I need to modify this.

papiahs commented 3 years ago

Hello I've same problem, when the list has few items, it display small height, and cannot show all items imagen

harry021 commented 3 years ago

If author can add listDataContainerStyle as a prop, than we can modify it. i guess it will solve our problem.

papiahs commented 3 years ago

As a workaround, change the style in index.js, flatListStyle. But it would be great if it is exposed. So I left it and when you rotate the phone it no longer fails. This happened to me on a moto Z3 play and a samsung S8

flatListStyle: { maxHeight: "85%", marginBottom:15 }

vishaldhanotiya commented 3 years ago

Fixed we removed minHeight style from list.