---
title: "React Native SDK: Custom data"
description: "Attach custom data to customer feedback with the Gleap React Native SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/512-react-native-sdk-custom-data
collection: "React Native"
updated: 2026-11-01
language: en
---

# React Native SDK: Custom data

Attach custom data to customer feedback with the Gleap React Native SDK. Follow the integration code examples.

## Add custom data

In many situations you may want to attach custom data to feedback items in order to better understand the context. You can add custom data incrementally or all at once. Any simple JSON object can be attached.

```javascript
Gleap.attachCustomData({ key: "Value" });
```

## Append custom data

If you want to attach custom data incrementally, you can do so with the `setCustomData` method.

```swift
Gleap.setCustomData("Magic & awesome", "value")
```

## Remove custom data

Remove custom data key value pairs by calling the following method.

```swift
Gleap.removeCustomDataForKey("value")
```

## Clear all custom data

It's possible to clear all attached custom data by calling the following method.

```swift
Gleap.clearCustomData();
```

## Related

- [React Native SDK setup](https://docs.gleap.ai/en/articles/499-react-native-sdk-setup.md)
- [React Native SDK: User identity](https://docs.gleap.ai/en/articles/500-react-native-sdk-user-identity.md)
- [React Native SDK: Track events](https://docs.gleap.ai/en/articles/501-react-native-sdk-track-events.md)
- [React Native SDK: Track pages](https://docs.gleap.ai/en/articles/502-react-native-sdk-track-pages.md)
- [React Native SDK: Frontend tools](https://docs.gleap.ai/en/articles/503-react-native-sdk-frontend-tools.md)
