react-native-dropdown-autocomplete icon indicating copy to clipboard operation
react-native-dropdown-autocomplete copied to clipboard

Basic version not rendering as expected

Open gunnx opened this issue 5 years ago • 2 comments

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

gunnx avatar Aug 27 '19 20:08 gunnx

Which component are you using as parent?

Westfran avatar Aug 28 '19 04:08 Westfran

Which component are you using as parent?

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

gunnx avatar Aug 28 '19 20:08 gunnx