hossein-zare / react-native-dropdown-picker

A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.
https://hossein-zare.github.io/react-native-dropdown-picker-website/
MIT License
970 stars 294 forks source link

Is it possible to have a custom selected ListItem? #631

Open yannickrocks opened 1 year ago

yannickrocks commented 1 year ago

I am using the renderListItem as follows:

  renderListItem={(props) => (
    <ListItem
      setDropdownValue={setDropdownValue}
      props={props}
      data={data}
      setOpen={setOpen}
    />
  )}

It works well for the list itself but for a selected item, it just displays the string.

Is it possible to have a customSelectedListItem which is similar to the ListItem component?

dffUqp commented 1 year ago

same question!