Skip to content

Conversation

jokerttu
Copy link
Contributor

@jokerttu jokerttu commented Jun 2, 2025

Starting with React Native version 0.76, the New Architecture is enabled by default, introducing significant changes to the framework's internals. This PR updates the package to support the New Architecture and drops support for the legacy architecture.

Resolves #338

FEATURES:

  • New React Native Architecture Support
    • Adds support for the new React Native architecture.
    • Uses codegen to generate the native interop layer for TurboModules and Fabric views.
    • includesGeneratedCode is set to true, and the generated code is committed within the package.
  • Navigation SDK Upgrades
    • Android: upgraded from 6.1.0 to 6.2.2
    • iOS: upgraded from 9.3.0 to 10.0.0
    • Adds support for real-time disruptions events.
    • Adds support for the Prompt Visibility API.

BREAKING CHANGES:

  • Legacy Architecture Removed
    • Removes support for the legacy React Native architecture.
  • Minimum iOS SDK Raised
    • Increases the minimum supported iOS SDK from 15.0 to 16.0.
  • API changes:
    • View Event Handlers as Props: Instead of using mapViewCallbacks and navigationViewCallbacks wrapper objects, event handlers are now passed directly as first-class view props.
    • View Flags as Props: View flags have been moved from viewControllers to view props. For example, the headerEnabled state can now be managed directly via a view prop, instead of calling navigationViewController.setHeaderEnabled(value).

CHORE CHANGES:

  • Upgrades project Node.js version from 18.x to 20.x.
  • Converts Android example app code to Kotlin.
  • Adds a code formatter for Kotlin files (used in the example app).
  • Updates the README to document New Architecture support.

Support Checklist (WIP)

  • Supports React Native 0.79.x
  • Supports React Native 0.78.x
  • Supports React Native 0.77.x
  • Supports React Native 0.76.x
  • Android Auto supports
  • CarPlay supports
  • Works with Expo framework

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation
  • I added new tests to check the change I am making
  • All existing and new tests are passing.

@lyonscrawl
Copy link

lyonscrawl commented Jun 29, 2025

Hello @jokerttu, I'm wondering if this MR is still in progress, as it has been submitted for approval for about a month?

@jokerttu
Copy link
Contributor Author

Hello @jokerttu, I'm wondering if this MR is still in progress, as it has been submitted for approval for about a month?

Yes, the process is still ongoing.
The new architecture has been implemented and is working in the example app. However, we are still in the middle of resolving issues with CarPlay support, particularly with multi-scene applications. Related issue: facebook/react-native#46184

@jokerttu jokerttu force-pushed the feat/support-new-react-native-architecture branch from 9416e02 to f944143 Compare July 31, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support New Architecture
3 participants