Skip to content

Performance Issues with React Native Bridgeless Architecture #47490

Closed

Description

@santhoshkumarvgds

Description

The Bridgeless Architecture in React Native 0.74 and later introduces significant performance issues, particularly for apps with complex logic and high demands for UI responsiveness. Here are the main concerns:

Key Issues

1. Screen Load Times

  • Problem: Synchronous communication with the native runtime slows down screen loading, particularly when multiple API calls are made.
  • Impact: Initial loads are bottlenecked, reducing overall app responsiveness.

2. UI Responsiveness and Touch Lag

  • Problem: The switch to synchronous communication impacts touch response, causing a laggy and less fluid user experience.
  • Result: Reduced interaction quality and increased user frustration.

3. Lazy Module Loading

  • Default Behavior: Bridgeless architecture loads modules lazily by default, contributing to delayed responses in complex pages.
  • Partial Fix: Disabling lazy loading improves response slightly but doesn’t fully solve the underlying delay issues.

Comparative Performance with Older Versions

  • Testing Results:
    • React Native 0.71.8 (asynchronous bridge): Modal with 32 API calls loads in approximately 3 seconds.
    • React Native 0.74.x / 0.76.1 (bridgeless): Modal with only 14 API calls takes over 10 seconds.

Attempts to Improve Performance

  • Native Threads & Configuration Adjustments: Shifting API calls to native threads, and enabling/disabling options like Hermes and New Architecture, failed to yield significant performance improvements.

Call for Optimizations

The React Native community and core team are urged to provide optimizations or alternative solutions to enhance performance under the bridgeless architecture.

Feedback Needed: Community support and solutions for the architectural limitations causing these performance issues.

Steps to reproduce

  1. Create a page/modal with 10-30 API calls.
  2. Test in React Native 0.74.x or later (Bridgeless).
  3. Measure load time and UI responsiveness.
  4. Compare with 0.71.8 (Async Bridge).

Expected: Slower performance in the bridgeless versions.

React Native Version

0.74+

Affected Platforms

Runtime - Android, Runtime - iOS

Areas

Bridgeless - The New Initialization Flow, Other (please specify)

Output of npx react-native info

System:
  OS: macOS 14.5
  CPU: (8) arm64 Apple M1
  Memory: 206.23 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.14.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.19
    path: /usr/local/bin/yarn
  npm:
    version: 10.7.0
    path: /usr/local/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods: Not Found
SDKs:
  iOS SDK: Not Found
  Android SDK: Not Found
IDEs:
  Android Studio: 2021.3 AI-213.7172.25.2113.9123335
  Xcode:
    version: 16.1/16B40
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /usr/bin/javac
  Ruby:
    version: 2.7.4
    path: /Users/santhoshkumarvgds/.rvm/rubies/ruby-2.7.4/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.0
    wanted: ^15.0.0
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.1
    wanted: ^0.76.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

Stacktrace or Logs

The issue occurs when multiple API calls are made on initial screen load. The app becomes unresponsive and takes significantly longer to load the screen. Despite attempts to optimize by disabling lazy loading and using native threads, the issue persists. No crash or stack trace is generated, but the app's performance degrades considerably.

Reproducer

Reproducer: Unfortunately, I cannot provide a public repository or Expo Snack at this time. Please let me know if you would like further details or an isolated example of the issue.

Screenshots and Videos

No response

Activity

  1. added
    Type: New Architecture
    on Nov 7, 2024
  2. react-native-bot commented on Nov 7, 2024

    @react-native-bot
    Collaborator

    Warning

    Could not parse version: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.76.2.

  3. added
    Needs: Repro
    and removed on Nov 7, 2024
  4. react-native-bot commented on Nov 7, 2024

    @react-native-bot
    Collaborator

    Warning

    Could not parse version: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.76.2.

  5. react-native-bot commented on Nov 7, 2024

    @react-native-bot
    Collaborator

    Warning

    Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

  6. cortinico commented on Nov 7, 2024

    @cortinico
    Contributor

    Reproducer: Unfortunately, I cannot provide a public repository or Expo Snack at this time. Please let me know if you would like further details or an isolated example of the issue.

    Yes we would need an isolated reproducer to look into this.

  7. arasrezaei commented on Nov 7, 2024

    @arasrezaei

    I agree, there are lots of lags and crashes.
    When I turn newArch off, the app is much smoother

  8. lovegaoshi commented on Nov 10, 2024

    @lovegaoshi

    i know this isnt particularly helpful to most others, but i also oberved performance degradation when migrating my app to bridgeless. my sprcific issue is react-navigation drawer opening is particularly choppy and wont switch screens completely. this is not exactly the rn teams fault, but the general DX/UX of our apps are still impacted

  9. JustJoostNL commented on Nov 13, 2024

    @JustJoostNL

    @lovegaoshi did you manage to fix that choppy drawer animation? The new architecture heavily slows down my app, is there any timeline for fixing this?

  10. lovegaoshi commented on Nov 13, 2024

    @lovegaoshi
  11. YasinAkimura commented on Nov 14, 2024

    @YasinAkimura

    I can also confirm that the new arch is causing a few performance issues regarding responsiveness,
    and I think react-navigation / expo-router are not ready for the new arch yet.

    I can notice a significant lag in catching touch events when doing things quickly which may indicate the blocking nature of synchronous events?

    Also a few bugs where Views seem to always fade / animate when layout changes or Text with adjustToFitSize and "unacceptable" lineHeight completely bug out but these are different issues.

  12. 114 remaining items

  13. react-native-bot commented on Apr 20, 2025

    @react-native-bot
    Collaborator

    This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.

  14. added
    Stale
    on Apr 20, 2025
  15. fardad-dev commented on Apr 20, 2025

    @fardad-dev

    Don't close.

  16. removed
    Stale
    on Apr 21, 2025
  17. added
    Never gets stale
    on Apr 22, 2025
  18. evelant commented on Jun 4, 2025

    @evelant

    I just released my app with the new arch enabled on expo 53 and rn 0.79.2 and now have users complaining of poor performance. I know that's not very helpful information, our app is quite complex and I haven't found potential causes yet, but it's at least another data point that there may still be issues with perf on the new arch.

  19. genesiscz commented on Jun 4, 2025

    @genesiscz

    Similar for our upgrade from 0.72 -> 0.77 + new arch :(

    Image
  20. mobinni commented on Jun 5, 2025

    @mobinni
    Contributor

    What data-fetching library do you all use? @genesiscz @evelant I have noticed that when doing fetch the timing between resolution and render is pretty bad. A network request that resolves in 200ms takes over 1 second to fully render 🤔 our app is fairly complex and has some network waterfall combined with expensive components to render but even then it seems a bit aggressive. We use apollo / sentry

  21. genesiscz commented on Jun 5, 2025

    @genesiscz

    What data-fetching library do you all use? @genesiscz @evelant I have noticed that when doing fetch the timing between resolution and render is pretty bad. A network request that resolves in 200ms takes over 1 second to fully render 🤔 our app is fairly complex and has some network waterfall combined with expensive components to render but even then it seems a bit aggressive. We use apollo / sentry

    Redux sagas, rtk query and lately react query - all of them using fetch wrapped with OpenApi generated TS packages. It's a hell :) and we also log with sentry and AppDynamics

  22. Rodrigo816 commented on Jun 5, 2025

    @Rodrigo816

    Similar for our upgrade from 0.72 -> 0.77 + new arch :(

    Image

    How you make that cool metrics?

  23. genesiscz commented on Jun 11, 2025

    @genesiscz

    Similar for our upgrade from 0.72 -> 0.77 + new arch :(

    How you make that cool metrics?

    Xcode -> Window -> Organizer

    I literally got notification about the Regression from production

    Image

  24. pleerock commented on Jun 11, 2025

    @pleerock

    From my observations, the huge performance difference is visible when you have LOT OF components rendered in the tree.
    For those who have time to create a reproduction repo - just try to create 10k views (using for-loop) with any text inside (even a single character) in a single scroll list. Then check how it works in old vs new arch. Share the repo and results.

  25. evelant commented on Jun 30, 2025

    @evelant

    Possibly related:

    #51869
    #50731

  26. cortinico commented on Sep 10, 2025

    @cortinico
    Contributor

    The Bridgeless Architecture in React Native 0.74 and later introduces significant performance issues, particularly for apps with complex logic and high demands for UI responsiveness. Here are the main concerns:

    We're closing this as this issue is quite old. We invite everyone to try 0.81 which contains several performance improvements especially for New Arch.

    If you encounter other performance regression, please open a new issue with a reproducer and we'll be happy to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackNeeds: ReproNeeds: Version InfoNever gets staleType: New Architecture

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions