Skip to content

Repository files navigation

Gleap React Native SDK

Gleap ReactNative SDK Intro

Add AI-native customer support, live chat, in-app bug reporting, a help center and surveys to your React Native apps with Gleap. Gleap is an Intercom alternative for software teams that connects customer conversations and feedback with product development.

SDK documentation · Website · Plans and pricing

Installation

npm install react-native-gleapsdk

Usage

// Import the SDK
import Gleap from "react-native-gleapsdk";

// Initialize it
Gleap.initialize('YOUR_API_KEY');

Data regions

Gleap projects are hosted in the EU by default. If your project lives in the US region, set the region before calling initialize:

Gleap.setRegion("us"); // "eu" (default) | "us"
Gleap.initialize('YOUR_API_KEY');

setRegion sets the API, websocket and realtime hosts at once. For dedicated servers you can still override a single host afterwards with setApiUrl, setWSApiUrl or setRealtimeHost.

Env data

With every ticket the SDK sends env data (device model, OS version, screen size, locale, battery state, …), shown under the Env data tab in Gleap. Leave out individual keys or stop collecting env data entirely:

Gleap.setEnvDataPropsToIgnore(['deviceName', 'batteryLevel']);
Gleap.setDisableEnvData(true);

Both can be called at any time and apply to the next ticket. Each setEnvDataPropsToIgnore call replaces the previous list, an empty array resets it. setDisableEnvData(false) turns the collection back on.

Need help?

Checkout our full documentation or contact us - we are always here to help 👋.

About

React Native SDK for Gleap, an Intercom alternative with AI customer support, live chat, in-app bug reporting and customer feedback.

Topics

Resources

Contributing

Stars

15 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages