React native custom autocomplete onBlur fires before onPress

543 Views Asked by At

I have a TextInput component with a List Item component that displays a list of search suggestions below it, similar to an AutoComplete. The issue is when I click one of the suggestions from the list it first fires the onBlur method of the TextInput and requires a second press before it fires the onPress method. How do I call the onPress method in one tap? I don't want it to blur if I'm pressing a dropdown list item.

0

There are 0 best solutions below