Skip to content

App running in debug on iOS freezes every 3 seconds if not connected to the same network where metro runs #54306

@mrAlmond

Description

@mrAlmond

Description

When running an app on iOS in debug mode, if we connect the phone to a network without internet access (and where metro server is not reachable) we experience periodical UI freezes every 3 (more or less) seconds.
When we switch back to the original network (and the metro connection is established again) everything runs smooth again.

Steps to reproduce

  1. Run the application in debug using yarn start and then yarn ios
  2. Connect the phone to another wifi network without internet access
  3. Try to use the app, you will notice periodical freezes.

React Native Version

0.78.3

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

info Fetching system and libraries information...
System:
  OS: macOS 14.7.1
  CPU: (11) arm64 Apple M3 Pro
  Memory: 532.41 MB / 18.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.17.0
    path: ~/.local/share/rtx/installs/node/18.17.0/bin/node
  Yarn:
    version: 3.6.4
    path: ~/.local/share/rtx/installs/node/18.17.0/bin/yarn
  npm:
    version: 9.6.7
    path: ~/.local/share/rtx/installs/node/18.17.0/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2025.1 AI-251.25410.109.2511.13665796
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: javac 17
    path: /Users/admin/.local/share/rtx/installs/java/oracle-17/bin/javac
  Ruby:
    version: 3.2.2
    path: /Users/admin/.local/share/rtx/installs/ruby/3.2.2/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.78.3
    wanted: 0.78.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

info React Native v0.82.1 is now available (your project is running on v0.78.3).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.82.1
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.78.3&to=0.82.1
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".

Screenshots and Videos

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebuggingIssues related to React Native DevTools or legacy JavaScript/Hermes debuggingNeeds: Author FeedbackNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.Platform: iOSiOS applications.Type: Unsupported VersionIssues reported to a version of React Native that is no longer supported

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions