Crash Reporter Module
This document explains how to install the Tealium Crash Reporter Module for React Native.
The Crash Reporter Module provides application crash tracking events.
How it works
Integrate Tealium mobile libraries into your React Native application using one of the following two methods:
- NPM package (recommended)
- Manual via GitHub
For more information about the Crash Reporter Module, see Crash Reporter Module for Android or Crash Reporter Module for iOS.
Requirements
- Access to your native build environments
- Tealium for React Native v2.2.0+
- React Native 0.63+ and tools installed.
- Tealium iQ Mobile Profile
- Android Studio or Xcode
- Tealium for Android or Tealium for iOS
Install (NPM/YARN)
To install the Tealium Crash Reporter module for React Native with NPM:
-
Follow the installation instructions for the main
tealium-react-native
library installation. Ensure you have installed at least verion 2.2.0 or above. -
Navigate to the root of your React Native project.
-
Download and install the
tealium-react-native-crash-reporter
package with the following command:yarn install tealium-react-native-crash-reporter
JavaScript
To import the relevant classes into your app, do the following:
import TealiumCrashReporter from 'tealium-react-native-crash-reporter';
Initialize
Configure the Crash Reporter module prior to initializing the main Tealium React Native integration:
Android:
let truncateStack: boolean = true; // Android only. Optional param to specify whether or not to truncate stack trace, default is false
TealiumCrashReporter.initialize(truncateStack);
iOS:
TealiumCrashReporter.initialize();
This page was last updated: July 27, 2023