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

Allow custom user value #722

Open voulgarakis opened 8 months ago

voulgarakis commented 8 months ago

Is it possible to allow the users to enter their own value in a searchable dropdown, even if the value they entered is not included in the dropdown's list and then selct it as dropdown's value?

shivardev commented 7 months ago

I want this feature as well, did you get any leads regarding this? @voulgarakis

voulgarakis commented 7 months ago

Hi,

I hack it like this:

addCustomItem={true}

and change the placeholder when the user presses the item him entered placeholder={ materials[index].description == '' ? I18n.t('material') : materials[index].description }