Filter Listings

Hello, can someone tell me how to use this function out of the React Native Course to filter the listings based on the user?

image

const categories = [{ label: ‘Furniture’, predicate: listing => listing.category.label === ‘furniture’}];

The user sees the category label, on click you send the predicate to filter the listings.

Ty, can you maybe send me a full Screenshot where this is implemented?

I just thought :thought_balloon: of how it can be implemented.