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
969 stars 294 forks source link

Custom Value after clicking the dropdown items. #749

Open mariokris opened 3 months ago

mariokris commented 3 months ago

I have 3 dropdown items in this context, {Golden Gold, Rose Gold, Blue Gold}, when click one of them will automatically change the value inside the square to Golden Gold/Rose Gold/ Blue Gold. Example i'm choosing Blue Gold, and the value inside the square is Blue Gold.

is it possible to custom the value inside the square?, so when im choosing Blue Gold, and the value inside the square will only showing 'Blue' not 'Blue Gold'.

Dropdown List items :

Screenshot 2024-04-03 at 03 51 31

Current square value after selecting dropdown items:

Screenshot 2024-04-03 at 04 01 47

What i'm expecting :

Screenshot 2024-04-03 at 03 59 06

Currently im using version : ^5.4.6