react-native-select-dropdown
react-native-select-dropdown copied to clipboard
When the search property is set to false getting 'TypeError: iterator method is not callable' error
When the search property is set to false getting 'TypeError: iterator method is not callable' error
TSX
<SelectDropdown search={false} ...
Error
TypeError: iterator method is not callable
NOT: There is no problem if the search property is never used or set to true
I solved the above error as follows. But it still better be fixed.
search={dropdown.isSearchable ? true : undefined}
It works if undefined is given instead of false