toystars / react-native-multiple-select

Simple multi-select component for react-native
MIT License
565 stars 313 forks source link

hideSearch does NOT work with RN 0.63.2 #144

Open Bilal-Abdeen opened 4 years ago

Bilal-Abdeen commented 4 years ago

Issue summary

The prop hideSearch seems to have no effect at all!

Library versions

react-native: 0.63.2 react-native-multiple-select: 0.5.5

Steps to Reproduce

  1. Copy the example, which is in the readme file of this library, to my project, and make sure it works fine.
  2. Add the prop hideSearch={true}

Results

The search input element is still displayed. It should NOT be.

Bilal-Abdeen commented 4 years ago

As a temporary workaround, I used styles to hide the search element.

<MultiSelect
  items={items}
  uniqueKey="id"

  // more props..... 

  // The following does NOT work!
  hideSearch={true} 

  // Use styles to hide the search element 
  styleInputGroup={{ display: "none", }}
/>