---
title: "React Native SDK: Attachments"
description: "Attach files to feedback and customer conversations with the Gleap React Native SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/513-react-native-sdk-attachments
collection: "React Native"
updated: 2026-11-01
language: en
---

# React Native SDK: Attachments

Attach files to feedback and customer conversations with the Gleap React Native SDK. Follow the integration code examples.

Gleap allows you to attach files to feedback items. This enables you to include application specific information, which Gleap doesn't collect by default.

### Add attachments

Gleap offers the following method to attach files to your feedback items. The attachments won't be removed after sending feedback as many customers requested them to be incremental. If you need to start over fresh after each report, simply use the `removeAllAttachments` method.

```javascript
Gleap.addAttachment("V2VsY29tZSB0byB0aGUgR2xlYXAgZmFtaWx5Lg==", "sample.txt")
```

-   The first parameter is a base64 encoded string.
    
-   The second parameter is the filename. **Make sure to also include the file extension.**
    

> **Info:** The file size is limited to **1MB** for each file. In addition we limited the maximum files count to **6 files**. These limits make sure that the user doesn't have to transfer too much data while sending feedback.

### Remove attachments

Use the following method to remove all attachments.

```javascript
Gleap.removeAllAttachments();
```

## 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)
