---
title: "React Native SDK: Callbacks"
description: "Handle widget events and lifecycle callbacks with the Gleap React Native SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/515-react-native-sdk-callbacks
collection: "React Native"
updated: 2026-11-01
language: en
---

# React Native SDK: Callbacks

Handle widget events and lifecycle callbacks with the Gleap React Native SDK. Follow the integration code examples.

The following event listeners allow you to listen for specific events allowing you to build deeper integrations with the Gleap widget.

```javascript
Gleap.registerListener("initialized", () => {
  // Initialized
  console.log("Gleap is now initialized. You can now interact with the SDK.");
});

Gleap.registerListener("notificationCountUpdated", (count) => {
  // Unread notification count updated.
  console.log("notificationCountUpdated", count);
});

Gleap.registerListener("feedbackSent", (data) => {
  // Feedback has been sent with data.
  console.log("feedbackSent");
  console.log(data);
});

Gleap.registerListener("feedbackSendingFailed", () => {
  // Sending feedback failed.
  console.log("feedbackSendingFailed");
});

Gleap.registerListener("feedbackFlowStarted", (flow) => {
  // A form was opened.
  console.log("feedbackFlowStarted");
  console.log(flow);
});

Gleap.registerListener("widgetOpened", () => {
  // Widget opened.
  console.log("widgetOpened");
});

Gleap.registerListener("widgetClosed", () => {
  // Widget closed
  console.log("widgetClosed");
});

Gleap.registerListener("customActionTriggered", (data) => {
  // Custom action triggered.
  console.log("customActionTriggered");
  console.log(data);
});
```

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