Open ScopeSV opened 1 year ago
I ended up just styling it directly inside renderItem
Still no listStyle?
Applying styles to the result list can by done through flatListProps.styles
:
<Autocomplete
// ...
flatListProps={{
keyboardShouldPersistTaps: 'always',
keyExtractor: (movie: Movie) => movie.episodeId,
style: styles.customList, // <-- apply custom list styles here
renderItem: ({ item }) => (
<TouchableOpacity onPress={() => setQuery(item.title)}>
<Text style={styles.itemText}>{item.title}</Text>
</TouchableOpacity>
),
}}
/>
Hi, checking out this library. The rendered list items have a very short height, which makes it very hard to press the correct item.
According to the docs here on GitHub there should be a
listStyle
prop, but I can't find anything about it anywhere in the code.How may I adjust the height of the items?
Thanks!