AdelRedaa97 / react-native-select-dropdown

react-native-select-dropdown is a highly customized dropdown | select | picker | menu for react native that works for andriod and iOS platforms.
MIT License
312 stars 133 forks source link

When the search property is set to false getting 'TypeError: iterator method is not callable' error #157

Open hasanhasanov opened 9 months ago

hasanhasanov commented 9 months ago

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

hasanhasanov commented 9 months ago

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