React Native SDK ⁠-⁠ Methods

  • startSession(): starts the recording.
  • setMetadata(): Set a metadata field and save it as part of the recording.
  • event(): Send custom events to be recorded as part of your replays with this method.
  • setUserID(): Identify your users with this method.
  • patchNetwork(): Patch fetch or/and XMLHttpRequest to record network requests.
interface IORTrackerConnector {
  startSession: (
    projectKey: string,
    optionsDict: Options,
    projectUrl?: string
  ) => void;
  setMetadata: (key: string, value: string) => void;
  event: (name: string, payload?: string) => void;
  setUserID: (userID: string) => void;
  userAnonymousID: (userID: string) => void;
}

If you have any questions about this process, feel free to reach out to us on our Slack or check out our Forum.