react-native-select-two
react-native-select-two copied to clipboard
Reset selected value
I try this component in my project. It's very cool but i have a question. I use it to select only one value. I want to know, how can i reset the selected value when a state change ? Can i reset the select ? :/
Same question any update? since its already 2021 there's no update :/
@lsimontooeasy did you find any solution ? :)
hello, is there any news about this problem?
Hi everyone, there is a simple hack for the problem of resetting the select:
` function handleReset(){ let resetData = data.map(d => ({...d, checked: false})) }
` if attribute checked is set to false it will reset the state