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
971 stars 295 forks source link

renderSelectedItem feature #577

Open sekoyo opened 2 years ago

sekoyo commented 2 years ago

Hi, thanks for this component. It seems like there is no way to customize the selected item (apart from styling which is pretty limited). It seems like a common use case to be able to customize the selected item - for example in my case I want to show an abbreviated selected value since space limited. Have you considered adding a renderSelectedItem(item) => React.ReactNode callback prop? If so I don't mind making a PR