React Native SDK - Modules
React Native SDK exports several components and methods for you to customize your recording:
Connector
Section titled Connectorinterface 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;
}
- 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.
Components
Section titled Components- ORTouchTrackingView: View used to track touch events.
- ORSanitizedView: View that lets you to sanitize (or blur out) parts of your recording
- ORTrackedInput: TextInput that records input events
- ORAnalyticsView: Marked view that sends an event once it gets seen on the screen and when it leaves it