---
url: https://talkjs.com/docs/UI_Components/React_Native/Object_Types/CustomPredicate
---

# CustomPredicate

Filter custom data by field values.

Ask a question Copy for LLM [View as Markdown](/docs/UI_Components/React_Native/Object_Types/CustomPredicate.md)

## Example

```typescript
{
  topic: ['oneOf', ['inquiry', 'reservation']]
}
```

## Properties

| Field | Type | Description |
| --- | --- | --- |
| **`[key: string]`** | [`CustomFieldPredicate`](/docs/UI_Components/React_Native/Object_Types/CustomFieldPredicate/) | Every key must correspond to a key in the custom data that you have set. |

## Used by

- [`PresenceOptions`](/docs/UI_Components/React_Native/Object_Types/PresenceOptions/)
- [`MessagePredicate`](/docs/UI_Components/React_Native/Components/Chatbox/#messagepredicate)