maxkordiyak / react-native-dropdown-autocomplete

Autocomplete input with dropdown modal component for React native. Useful for pages with multiple autocomplete's.
MIT License
100 stars 51 forks source link

Basic version not rendering as expected #26

Open gunnx opened 5 years ago

gunnx commented 5 years ago

When I installed the library and used the following code, it renders very tall, fills my whole app height and although the spinner appears no results show.

Do you need to have specific styling set in order to get this to work? Thanks

<Autocomplete
      data={cities}
      handleSelectItem={(item, id) => handleSelectItem(item, id)}
      valueExtractor={item => item.city}
      style={{maxHeight: 40}}
/>
Screenshot 2019-08-27 at 21 30 13
Westfran commented 5 years ago

Which component are you using as parent?

gunnx commented 5 years ago

Which component are you using as parent?

Just a view with `flex:1, alignItems: 'center'