hossein-zare / react-native-dropdown-picker

A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.
https://hossein-zare.github.io/react-native-dropdown-picker-website/
MIT License
970 stars 294 forks source link

Can't set margin between list items if icons are present #636

Closed jaaywags closed 1 year ago

jaaywags commented 1 year ago

Hello,

If I have a list of items to display, and each item in the list has an icon, how do I set a margin between the list items? Right now, it looks like the icons are touching. I would like some space between them. If you don't use icons, it is easy to add/remove margin/height.

Expo example of the issue https://snack.expo.dev/@jaaywags/listitemiconissue

image

jaaywags commented 1 year ago

Please ignore this. I resolved my issue by adding listItemContainerStyle={{height: 60}}. I swear I tried that but guess not.