@corrbo/react-native-dev-console
Version:
Developer menu
17 lines (16 loc) • 516 B
JavaScript
;
let XHRInterceptor;
try {
// new location for React Native 0.79+
const module = require('react-native/src/private/inspector/XHRInterceptor');
XHRInterceptor = module.default ?? module;
} catch {
try {
const module = require('react-native/Libraries/Network/XHRInterceptor');
XHRInterceptor = module.default ?? module;
} catch {
throw new Error('XHRInterceptor could not be found in either location');
}
}
export default XHRInterceptor;
//# sourceMappingURL=XHRInterceptor.js.map