mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50142 This is a first pass at integrating `NetworkReporter` in our networking stack on iOS (`RCTNetworking.mm`). **Implemented events** Wires up minimal events sufficient to populate the Chrome DevTools Network panel: - `Network.requestWillBeSent` - `Network.responseReceived` - `Network.loadingFinished` **Other notes** `RCTNetworking` is used (tentatively) as the integration point since it: - Is the default implementation for the network stack on iOS. - Should allow us to pair with originating JS call site down the line. - Intercepts Blob requests (at least `RCTImageLoader`). - Sits outside the user-configurable `RCTNetworkingResponseHandler` and `RCTNetworkingRequestHandler` concepts. - Is where network events are currently sent to JavaScript (`sendEventWithName`). NOTE: Reminder: `NetworkReporter` is currently a no-op without the `fuseboxNetworkInspectionEnabled` experiment set. Changelog: [Internal] Reviewed By: javache Differential Revision: D71470038 fbshipit-source-id: 069d77473c333a98f796b3dffa670a39b3016b2b