react-navigation
, and native crash errors.
Prerequisites
React Native version 0.68
or above. Check your React Native version with the following command:
Shell
React Navigation 5 & 6 and Expo are both supported by the Middleware React Native SDK
Install & Instrument Your React Application
Step 1: Install Middleware React Native SDK
Shell
Step 2: Initialize Middleware React Native SDK
JavaScript
Custom Configurations
Logs
Create custom logs using the Middleware API:JavaScript
Global Attributes
Set global attributes with thesetGlobalAttributes
function:
JavaScript
Custom Errors
Report Custom errors with the following try and catch statment:JavaScript
Updating Location Information
Set the latitude and longitude as global attributes:JavaScript
Session Recordings
The maximum session recording duration is four hours. If users are inactive for more than 15 minutes at a time, session recordings will be stopped. If users exceed more than four hours in a single session or become active again after the 15-minute inactivity timeout, a new session will be automatically created. Session recording is enabled by default. Disable this feature by passingsessionRecording: false
in the following configuration:
JavaScript
Privacy
Blur sensitive information in session recordings by embedding the following JSX component: User passwords are automatically masked by default. Other sensitive information like credit card data and API keys must be masked manually.
JSX