react-native-dropdown-picker
react-native-dropdown-picker copied to clipboard
Add default/any option that reset single mode dropdown
Currently the only way to reset dropdown is by setting the value to null, but i'd like the option to add a "default/any" option that reset the dropdown by user picking it. While it is technically possible by creating a null value like this
{ label: 'Any', value: null }
While it is technically working in javascript, when using typescript the compiler complaint that null is not assignable to ValueType. So i'd like to propose a solution to allow null in ValueType or add a props that insert this default value and its label.