Skip to main content
The Gleap SDK for React Native is the easiest way to integrate Gleap into your apps. Communicate with your users directly and build better software by discovering their everyday pain points. Gleap is your all-in-one customer feedback tool for apps and websites. For the SDK to work, you need an API key, which you can get for free at app.gleap.ai. :::tip ReactNative Expo is now fully supported with the latest RN SDK. You can find a full Expo installation guide here. :::

Supported platforms

๐Ÿ— Installation

Install the Gleap ReactNative SDK through npm .
In some cases, you might need to reinstall the native dependencies. Install native dependencies for Android: Open Android Studio and sync your gradle project. Install native dependencies for iOS: Open your /ios folder and run pod install. The iOS SDK requires iOS 15.0 or later and React Native 0.75 or later (Expo SDK 52 or later). pod install adds the Gleap iOS SDK as a Swift package to the Pods project through React Nativeโ€™s spm_dependency, and Xcode resolves it on the next build. You donโ€™t add the package to your app yourself; your Podfile only needs to call react_native_post_install in its post_install hook, as the React Native and Expo templates do.
pod install may warn that a Swift package with static linking โ€œmight cause linker errorsโ€. You can ignore it: the SDK builds with the default static linkage as well as with USE_FRAMEWORKS=dynamic.
On React Native older than 0.75, pod install falls back to the Gleap pod from CocoaPods trunk and prints a warning. CocoaPods trunk becomes read-only on December 2, 2026, so only Gleap iOS SDK versions published before then are available this way.

๐Ÿ‘ทโ€โ™‚๏ธ Initialize the SDK

Open your preferred development tool and add the following to your index.js.
After importing the Gleap SDK add the following line to your index.js. Please make sure that it gets executed only once.
You donโ€™t have an API key? Get one for free here. :::tip You are all set now! Run the app and report your first bug ๐ŸŽ‰. :::

๐ŸŒ Data region

Gleap stores and processes your data in the region you selected at signup: EU (default) or US. If your project lives in the US region, select the region before initializing the SDK (requires SDK v18.0.0 or newer). EU projects donโ€™t need this call.
See Data regions for all hosts and details.

๐Ÿšจ Troubleshooting Android

Google Play will soon require that apps target API level 31 or higher. This is required for new apps from August 2022, and for updates to existing apps from November 2022.
If your project depends on API level 30 please add the following to the react-native-gleadpsdk build.gradle:

Required permissions (Android)

In order to use the image picker for attachments, add the following permissions to your AndroidManifest.xml.
The following permissions are needed to enable audio recordings.

Required permissions (iOS)

In order to use the image picker for attachments, add the following permissions to your Info.plist.
The following permissions are needed to enable audio recordings.

๐Ÿค Need help?

We are here to help, simply drop us an email at hello@gleap.ai.