Getting started is easy:
- Visit https://app.logrocket.com to get an app ID.
- Initialize the SDK in your application to start recording sessions
- You only need to initialize the SDK once using our React Native SDK. There’s no need to separately initialize the iOS or Android native SDKs
- If you use Expo, follow these initialization steps
- Sanitize your data before sending it to LogRocket. Control what gets captured by filtering out any UI elements, text, or network data you don't want to include
After you finish setup, we recommend the following to enhance your sessions further:
- Identify users in LogRocket for easier search and enhanced analytics
- Upload sourcemaps for full stack trace visibility
- If you use WebViews in your app, follow these steps to capture them in session replay
- Tag key pages for precise navigation analytics
- LogRocket automatically captures View Controller (iOS) and Activity (Android) events for navigation tracking. However, you can enhance this by adding custom page tags to refine and optimize your navigation analytics further.
- Upload your custom fonts on release builds
- If you use custom fonts, and notice missing icons or incorrectly sized text in Session Replay, you may want to upload your fonts to LogRocket. This will enable custom fonts to display in session replay.
- Follow the setup instructions for both iOS and Android to configure custom fonts on each platform.
- Support for uploading custom fonts via Expo is coming soon
- Enhance session recordings by setting custom events
- While LogRocket automatically captures standard events like clicks and navigation, you can enrich your data by defining custom events for specific business logic or unique interactions that you want to track.
- Manually log additional errors and exceptions
Not seeing what you're looking for? Check out the rest of our React Native documentation for even more granular controls.