is there a way to dynamically filter items in a FlatList? Say I wanted to filter items based on today's date, tomorrow's date, etc, how could I go about changing/updating the filterBy prop function dynamically?
e.g.
filterBy={item => (item.date > '6-20-20'); // all items past todays date
to
filterBy={item => (item.date == '6-20-20') // all items happening today
is there a way to dynamically filter items in a FlatList? Say I wanted to filter items based on today's date, tomorrow's date, etc, how could I go about changing/updating the filterBy prop function dynamically?
e.g.
filterBy={item => (item.date > '6-20-20'); // all items past todays date to filterBy={item => (item.date == '6-20-20') // all items happening today