React native AutoCompleteInput suggestionlist opens in different item
Asked Answered
B

1

1

I'm using AutocompleteInput from 'react-native-autocomplete-input'.I've multiple items and I'm presenting those items in card view. No in that card view, I need some TextInputs and autocomplete. Now my main problem is if I search in 1st item autocomplete suggestionlist will open in the last item.

Blockquote

Biisk answered 21/9, 2023 at 6:6 Comment(0)
C
0

Reverse the list maybe? There is an example here: https://www.w3schools.com/jsref/jsref_reverse.asp

The basic idea is just calling reverse on your array before passing it as the data prop in the autocomplete.

Cryosurgery answered 27/2, 2024 at 10:23 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Wale

© 2022 - 2025 — McMap. All rights reserved.