1- // TODO: Revert imports to named exports instead of default exports
2- // import Types from './Types';
3- // const { RealUserMonitoringEvents, RealUserMonitoringTimings, RealUserMonitorPayload, RequestMeta } from Types;
41import { RealUserMonitoringEvents , RealUserMonitoringTimings , RealUserMonitorPayload , RequestMeta } from './Types' ;
5-
6- // import Utils from './Utils';
7- // const { getCurrentUser, getCurrentTags, getRandomGUID } = Utils;
82import { getCurrentUser , getCurrentTags , getRandomGUID } from './Utils' ;
9-
10-
113import { v4 as uuidv4 } from 'uuid' ;
124import { NativeEventEmitter , NativeModules , Platform } from 'react-native' ;
135import RaygunLogger from './RaygunLogger' ;
@@ -17,6 +9,7 @@ const { osVersion, platform } = RaygunNativeBridge;
179
1810// Attempt to require XHRInterceptor using dynamic paths
1911let XHRInterceptorModule : any ;
12+ // TODO: Uncomment when RN 0.81 is released
2013// try {
2114// // Try the new path first (for RN >= 0.79)
2215// // https://github.com/facebook/react-native/releases/tag/v0.79.0#:~:text=APIs%3A%20Move-,XHRInterceptor,-API%20to%20src
@@ -32,6 +25,7 @@ let XHRInterceptorModule: any;
3225// }
3326
3427let XHRInterceptor : any ;
28+ // TODO: Uncomment when RN 0.81 is released
3529// if (XHRInterceptorModule) {
3630// // Check if methods are directly on the module
3731// if (
0 commit comments