Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Search people by alphabet characters in TypeScipt?

$
0
0

How to create a search bar for a list of strings and filter content by alphabet character from TextInput component?The search bar must works by updating the search state each time text is entered or changed in the text field.

const alphabetCharacters: string[] = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','#',];const searchPeople = () => {};<TextInput                    onChange={searchPeople}                    value=''                    placeholder='Typ een voornaam'                    keyboardType='default'                    returnKeyType='done'                    newDesign={true}                />

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>