react-native-dropdown-picker icon indicating copy to clipboard operation
react-native-dropdown-picker copied to clipboard

Dropdown list styling

Open milos381 opened this issue 3 years ago • 2 comments

I've been searching everywhere on how to style the actual list. As you can see, the border is still default black and the backgroundColor is transparent. How do I change that? Thanks! Screen Shot 2022-08-30 at 12 52 04 AM

milos381 avatar Aug 30 '22 04:08 milos381

I hope this help

<DropDownPicker
  ...
  dropDownContainerStyle={{
    backgroundColor: 'white',
    borderColor: 'skyblue',
  }}
  ...
/>
  • Also, posting a bit of your code may help others breakdown your problem

vozaldi avatar Aug 31 '22 03:08 vozaldi

@milos381 had a similar problem with the seemingly transparent background, just using the demo code from the docs with the BOTTOM direction. Turns out that it's not about colors, but about z-index. See https://github.com/hossein-zare/react-native-dropdown-picker/issues/562#issuecomment-1139908459 for a potential fix. hth :)

drbarto avatar Sep 07 '22 10:09 drbarto