---
title: "React Native SDK: Widget control"
description: "Open and close the Gleap widget programmatically with the Gleap React Native SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/522-react-native-sdk-widget-control
collection: "React Native"
updated: 2026-11-01
language: en
---

# React Native SDK: Widget control

Open and close the Gleap widget programmatically with the Gleap React Native SDK. Follow the integration code examples.

In some situations you might want to take full control over showing the Gleap widget. This can be achieved with the following method.

### Open the Gleap widget

```javascript
Gleap.open();
```

This method opens the Gleap widget and shows the feedback menu options.

### Close the Gleap widget

```javascript
Gleap.close();
```

This method closes the Gleap widget.

### Widget open status

It's possible to request the widget open status with the following method.

```javascript
const isOpened = await Gleap.isOpened();
```

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