UNPKG

@corrbo/react-native-dev-console

Version:
17 lines (16 loc) 516 B
"use strict"; 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