Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Search Filter with React Native on FlatList

<FlatList
  data={this.state.filteredData && this.state.filteredData.length > 0 ? this.state.filteredData : this.state.data}
  keyExtractor={(item) => `item-${item.id}`}
  renderItem={({item}) => <ListItem
    id={item.id}
    code={item.code}
    description={item.description}
  />}
/>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Search #Filter #React #Native #FlatList
ADD COMMENT
Topic
Name
6+9 =