You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
This may be a feature request that not a lot of people are interested in but I see your alphabet list as a great component for displaying a contact list and any other ordered long list. To that effect, I would love to see an integration with a searchable section list component made possible.
Example: https://github.com/mrlaessig/react-native-autocomplete-input
The text was updated successfully, but these errors were encountered:
Agreed, I've implemented it in my own project using the search bar from react-native-elements and a simple filter function:
searchFilterFunction=(text)=>{// Check if searched text is not blankif(text){// Inserted text is not blank// Filter data source (this.state.words)// Update the filtered data source (this.state.filteredWords)constnewData=this.state.words.filter(function(item){constitemData=item.value
? item.value.toUpperCase()
: ''.toUpperCase();consttextData=text.toUpperCase();returnitemData.indexOf(textData)>-1;});this.setState({filteredWords: newData});this.setState({search: text});}else{// Inserted text is blank// Update the filtered data source (this.state.filteredWords) with the master data sourcethis.setState({filteredWords: this.state.words})this.setState({search: text});}};
Hello,
This may be a feature request that not a lot of people are interested in but I see your alphabet list as a great component for displaying a contact list and any other ordered long list. To that effect, I would love to see an integration with a searchable section list component made possible.
Example: https://github.com/mrlaessig/react-native-autocomplete-input
The text was updated successfully, but these errors were encountered: