Skip to content

TenitX/NativeReplay

Repository files navigation

nativereplay

animated-nativereplay-logo

Session Replays built for React Native

Installation

npm install nativereplay

Usage

In highest level of the app (likely app.js):

import { NativeReplayProvider } from "nativereplay";
// ...
<NativeReplayProvider apiKey={NATIVE_REPLAY_TOKEN}>
    // ... rest of your app
</NativeReplayProvider>

On the different screens you want to track:

import { addReplayTrackingProps, useNativeReplay } from "nativereplay";
// ...
const nativeReplayContext = useNativeReplay();
// ...
<View {...addReplayTrackingProps(nativeReplayContext, "the-screen-name")}>
</View>

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


About

Session Replays built for React Native

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published