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

Can the selected item be hidden from the dropdown list?

Open nine-9-nine opened this issue 2 years ago • 3 comments

Hi, first.. amazing package!

The only thing that bothers me, is that the selected item is shown again in the dropdown list. Is there any way to hide the selected item in the dropdown list, so it does not show up twice?

Thank you!

nine-9-nine avatar Nov 29 '22 10:11 nine-9-nine

Hi @nine-9-nine, i faced the same issue and solved it via styles:

selectedItemContainerStyle={{
        display: 'none',
      }}

Hope this works for you too.

valdrin-hoti avatar Dec 07 '22 23:12 valdrin-hoti

Thank you so much @valdrin-hoti, works perfectly!

nine-9-nine avatar Dec 08 '22 12:12 nine-9-nine

This sort of works, unless you have an item separator and then they double up

johnf avatar Jan 22 '24 05:01 johnf