# Filter Listings

**URL:** <https://forum.codewithmosh.com/t/filter-listings/13483>\
**Category:** React Native\
**Created:** [July 5, 2022, 5:59pm UTC](https://forum.codewithmosh.com/t/filter-listings/13483 "2022-07-05T17:59:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haverbray](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@Haverbray](https://forum.codewithmosh.com/u/Haverbray)\
**Post date:** [July 5, 2022, 5:59pm UTC](https://forum.codewithmosh.com/t/filter-listings/13483/1 "2022-07-05T17:59:44Z")

</div>

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](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/b/b365cacb95731c205b9a8c7e76486753dadbd058.png)

---

<div class="post-metadata">

**Author:** ![Augustine\_Awuori](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/augustine_awuori/32/873_2.png) [@Augustine\_Awuori](https://forum.codewithmosh.com/u/Augustine_Awuori)\
**Post date:** [July 5, 2022, 6:21pm UTC](https://forum.codewithmosh.com/t/filter-listings/13483/2 "2022-07-05T18:21:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Haverbray](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@Haverbray](https://forum.codewithmosh.com/u/Haverbray)\
**Post date:** [July 6, 2022, 9:50am UTC](https://forum.codewithmosh.com/t/filter-listings/13483/3 "2022-07-06T09:50:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Augustine\_Awuori](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/augustine_awuori/32/873_2.png) [@Augustine\_Awuori](https://forum.codewithmosh.com/u/Augustine_Awuori)\
**Post date:** [July 7, 2022, 6:20am UTC](https://forum.codewithmosh.com/t/filter-listings/13483/4 "2022-07-07T06:20:57Z")

</div>

I just thought 💭 of how it can be implemented.
