Integrate Luciq on React Native
This page covers how to install the Luciq SDK in your React Native application.
Installation
This installation process will install the Luciq SDK that supports Bug reporting, Crash reporting, and Application performance moniroting.
If you are upgrading from versions prior to v11.0, check our migration guide: /docs/react-native-migration-guide
Using Luciq
Import and initialize the SDK in your index.js (or main entry) file. The default behavior shows Luciq when the device is shaken; you can customize this via the SDK APIs.
import Luciq, { InvocationEvent } from '@luciq/react-native';
Luciq.init({
token: 'APP_TOKEN',
invocationEvents: [InvocationEvent.shake],
});You can find your app token by selecting SDK Integration in the Settings menu from your Luciq dashboard.

Managing Permissions
Luciq needs access to the device microphone and photo library to allow users to add audio, image, and video attachments. Starting from iOS 10, apps that don’t provide usage descriptions for these permissions will be rejected by the App Store.
Add the following keys to your app’s info.plist with a user-facing explanation:
NSMicrophoneUsageDescription
NSPhotoLibraryUsageDescription
Example wording if your app doesn't already access these resources:
" needs access to your microphone so you can attach voice notes."
" needs access to your photo library so you can attach images."
Permissions Are Required
The above permissions are required in order for you to receive attachments from your users through the Luciq SDK.
Last updated