Skip to content

Cleanup: Remove fbsource compatibility overload for NetworkEventUtil.onResponseReceived() #55747

Description

@bhamiltoncx

Description

Split off from code review on #55706 .

@huntie noted an internal override for NetworkEventUtil.onResponseReceived() marked @Deprecated is still in use by fbsource.

Filing this to add a TODO comment to clean it up once fbsource is migrated off the deprecated API.

Steps to reproduce

@Deprecated API for NetworkEventUtil.onResponseReceived() is still used by fbsource, so it cannot be removed.

React Native Version

0.84.0

Affected Platforms

Other (please specify)

Output of npx @react-native-community/cli info

npx @react-native-community/cli info 
info Fetching system and libraries information...
System:
  OS: macOS 26.2
  CPU: (10) arm64 Apple M4
  Memory: 129.70 MB / 24.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 24.11.1
    path: ~/.nvm/versions/node/v24.11.1/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v24.11.1/bin/yarn
  npm:
    version: 11.6.2
    path: ~/.nvm/versions/node/v24.11.1/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.2
      - iOS 26.2
      - macOS 26.2
      - tvOS 26.2
      - visionOS 26.2
      - watchOS 26.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2025.2 AI-252.28238.7.2523.14688667
  Xcode:
    version: 26.2/17C52
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.18
    path: /usr/bin/javac
  Ruby:
    version: 4.0.1
    path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 19.2.3
    wanted: 19.2.3
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Stacktrace or Logs

N/A

MANDATORY Reproducer

https://github.com/facebook/react-native

Screenshots and Videos

No response

Metadata

Metadata

Assignees

Labels

Needs: Author FeedbackNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.StaleThere has been a lack of activity on this issue and it may be closed soon.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions