danish1658 / react-native-dropdown-select-list

☝️ React Native Select List Equivalent to Html's Select with options"
https://www.npmjs.com/package/react-native-dropdown-select-list
MIT License
200 stars 89 forks source link

Error when using search #65

Open HenryBridges opened 1 year ago

HenryBridges commented 1 year ago

Hi,

It may be due to the data items i am using to populate the dropdown but get the following issue when i enter a letter into the search bar:

` <SelectList

        defaultOption={defaultOption}

        setSelected={val => setSelectedDish(val)}

        search={true}

        data={dishNames}

        boxStyles={{width: 0.55 * S_WIDTH}}

        arrowicon={
          <MIcon name="arrow-drop-down" size={20} color={'black'} />
        }

        searchicon={<MIcon name="search" size={20} color={'black'} />}
      />

`

Screenshot 2023-04-05 at 19 48 37

The data items i use are an array of just strings (not objects)

MOUTAIROU commented 9 months ago

I have the same problem. Did you solve it?