Closed behi1989 closed 4 years ago
Now, just typing a letter, the list will be displayed.
I think your concern is about this hideResults={query.length < 3 ? true : false} you can change the length to get your result
I think your concern is about this hideResults={query.length < 3 ? true : false} you can change the length to get your result
Thank you, But I mean to open the list with focus on input without typing.
I use the following solution
`<Autocomplete hideResults={this.state.hideResults} onFocus={() => this.setState({ hideResults: false })} renderItem={({ item, i }) => ( <TouchableOpacity onPress={() => this.setState({ hideResults: true })}>
)} />`
working for me: hideResults={isHideResultsAutocomplete} onFocus={() => setHideResultsAutocomplete(false)} onEndEditing={() => setHideResultsAutocomplete(true)}
working for me: hideResults={isHideResultsAutocomplete} onFocus={() => setHideResultsAutocomplete(false)} onEndEditing={() => setHideResultsAutocomplete(true)}
Yes, I used the same Anyway, thank you
The issue with this approach is that if you select an item, but then delete it and try typing again, the results does not show. I've tried adding "onEditing={() => setHideResults(false)}" but that hasn't solved that edgecase for me. Anyone else encounter this issue?
I want to be display the list items by typing a letter and also displayed the complete list items by focus on the input too. How can I do this?