# @rnx-kit/react-native-host

## 0.5.23

### Patch Changes

- d3ff642: `[RCTBridge initWithDelegate:launchOptions:]` and `RCTEnableTurboModule()` were
  removed in 0.89.

## 0.5.22

### Patch Changes

- e04e4a5: Moved public headers to `cocoa/include/ReactNativeHost/` and infer New
  Architecture from the React Native version in preparation for SwiftPM support.

## 0.5.21

### Patch Changes

- 361155b: Fixed `ReactNativeHost.mm` not compiling due to missing header

## 0.5.20

### Patch Changes

- bcc44be: Use `ReactNativeFeatureFlagsOverridesOSSStable` when available

## 0.5.19

### Patch Changes

- 79ddb06: Fixed detection of unified feature flags

## 0.5.18

### Patch Changes

- a226a87: Handle removal of `RCTEnableTurboModuleInteropBridgeProxy` and New Arch flags in `ReactNativeFeatureFlags`

## 0.5.17

### Patch Changes

- 9d9e5a6: Don't include bridge code in bridgeless mode
- 6171b84: fix(react-native-host): Various build fixes

  - Rename inner `strongSelf` in `-setBridge:` to `innerStrongSelf` so it
    no longer shadows the outer.
  - Gate `#import <React/RCTCxxBridgeDelegate.h>` behind `#if !USE_BRIDGELESS`
    to match the already-conditional protocol conformance.
  - Drop the stray `;` before the `-viewWithModuleName:initialProperties:`
    body.

## 0.5.16

### Patch Changes

- 1f34fd1: Handle `useShadowNodeStateOnClone` being removed in 0.85

## 0.5.15

### Patch Changes

- f4e3221: Re-define deprecated bridge methods for backwards compatibility

## 0.5.14

### Patch Changes

- e8bbe48: Fixed community JSC support.

  Fix compile error in `ReactNativeHost.mm` when Hermes is not being used.
  `fatal error: 'ReactCommon/RCTHermesInstance.h' file not found`

  The `USE_HERMES` preprocessor definition was only being set in
  `GCC_PREPROCESSOR_DEFINITIONS` (for C and Objective-C files), but NOT in
  `CPP_PREPROCESSOR_DEFINITIONS` (for [Objective] C++) files. This caused
  `ReactNativeHost.mm` to NOT receive the `USE_HERMES=0` flag, making it
  incorrectly import Hermes symbols that aren't resolved at link time.

## 0.5.13

### Patch Changes

- 8177436: Fixed headers not being found with `use_frameworks!`

## 0.5.12

### Patch Changes

- c94b658: Detect when bridgeless mode is required

## 0.5.11

### Patch Changes

- 4667e34: Fix third party Fabric components not rendering

## 0.5.10

### Patch Changes

- 9769ebd: Fix building 0.81 + Hermes

## 0.5.9

### Patch Changes

- 7b26249: Fixed race condition inside Fabric. See
  https://github.com/reactwg/react-native-releases/issues/976 for more details.

## 0.5.8

### Patch Changes

- 3eb57fc: Post a notification when the React runtime is ready

## 0.5.7

### Patch Changes

- c2e4303: Backport fix for shadow node state not updating (see
  https://github.com/react/react-native/issues/49694)

## 0.5.6

### Patch Changes

- 6880afa: Fixed `SurfaceRegistryBinding::startSurface` failing on 0.75 (and
  older)
- fa2feb4: Fixed invalid application of `sizeof` to an incomplete type
  `facebook::react::JSExecutorFactory`

## 0.5.5

### Patch Changes

- 53517cf: `enableFixForViewCommandRace` was removed in 0.79

## 0.5.4

### Patch Changes

- 139f2a1: Fix third party components on new arch 0.77+

## 0.5.3

### Patch Changes

- fda8cda: Build fixes for 0.78

## 0.5.2

### Patch Changes

- 582dabc: Updated feature flags and other build fixes for 0.77

## 0.5.1

### Patch Changes

- b763270: Remove unused header (and maybe fix building with statically linked
  frameworks)

## 0.5.0

### Minor Changes

- 3afb5fa: Bump minimum Node version to 16.17

## 0.4.12

### Patch Changes

- 1eaa3bf: Fixed `setImmediate` not being called on 0.75

## 0.4.11

### Patch Changes

- 7c32438: Bump esbuild to 0.21.x

## 0.4.10

### Patch Changes

- 99bcb24: Override feature flags for bridgeless mode

## 0.4.9

### Patch Changes

- 76f92c1: Fix `SurfaceRegistryBinding::startSurface` failed on startup with New
  Architecture

## 0.4.8

### Patch Changes

- f174719: Prevent unintentional autolinking

## 0.4.7

### Patch Changes

- 9f51524: Handle `launchOptions` being added to `RCTHost` initializer in 0.74
  (see https://github.com/react/react-native/pull/43757)

## 0.4.6

### Patch Changes

- f849c5a: Fixed building with `use_frameworks!`

## 0.4.5

### Patch Changes

- b4b5698: Implemented an `RCTHost` compatibility layer for deprecated methods,
  `-getModuleRegistry` and `-getSurfacePresenter`, and their replacements,
  `-moduleRegistry` and `-surfacePresenter` (see
  https://github.com/react/react-native/commit/c3b0a8f1626939cf5c7b3864a5acf9d3dad26fb3
  for details)

## 0.4.4

### Patch Changes

- 9fe163f: Implement `usingModule:block:` for bridgeless mode

## 0.4.3

### Patch Changes

- e02e503: Enable `concurrentRoot` by default when New Architecture is enabled.

  Having `concurrentRoot` disabled when Fabric is enabled is not recommended:
  https://github.com/react/react-native/commit/7eaabfb174b14a30c30c7017195e8110348e5f44

  As of 0.74, it won't be possible to opt-out:
  https://github.com/react/react-native/commit/30d186c3683228d4fb7a42f804eb2fdfa7c8ac03

## 0.4.2

### Patch Changes

- 20864b4: Added support for Bridgeless Mode

  Bridgeless mode can now be enabled by setting the environment variable
  `USE_BRIDGELESS=1`. This build flag will enable bridgeless bits, but you can
  still disable it at runtime by implementing
  `RNXHostConfig.isBridgelessEnabled`.

  See the full announcement here:
  https://reactnative.dev/blog/2023/12/06/0.73-debugging-improvements-stable-symlinks#new-architecture-updates

## 0.4.1

### Patch Changes

- c856f87: Add visionOS support

## 0.4.0

### Minor Changes

- 7215f80: Merged `USE_TURBOMODULE` with `USE_FABRIC`. If your config plugins
  were previously using `USE_TURBOMODULE`, please switch to `USE_FABRIC`.

## 0.3.2

### Patch Changes

- 476ebe8: Handle refactorings in 0.74

## 0.3.1

### Patch Changes

- 91a9ffe5: Fix New Arch not building because `folly::coro` was unintentionally
  enabled

## 0.3.0

### Minor Changes

- f727aa58: Bump C++ language standard to C++20

  This will unfortunately break `react-native` versions 0.65 and below, but is
  neccessary to support 0.74 and above.

## 0.2.9

### Patch Changes

- b73c47b0: Add support for 0.73

## 0.2.8

### Patch Changes

- 504a691b: Remove unused bridge events. `RCTBridge` may go away in the future
  and should not be exposed to users.
- 537d6f74: Describe react-native-host API in README

## 0.2.7

### Patch Changes

- 79615c96: RuntimeScheduler is only used by TurboModule Manager in >RN0.72

## 0.2.6

### Patch Changes

- 32c5ee3e: Make headers from `ReactCommon/turbomodule/core` available to config
  plugins

## 0.2.5

### Patch Changes

- 405dcfea: Fix 0.72 + New Architecture not being able to find
  `RCTAppSetupUtils.h`

## 0.2.4

### Patch Changes

- 8d8fc112: Fixed Xcode not being able to find a number of headers when
  targeting react-native 0.64

## 0.2.3

### Patch Changes

- 24e0eb61: Removed unused dependencies

## 0.2.2

### Patch Changes

- b4f682a1: `React-cxxreact` is only needed when New Arch is enabled

## 0.2.1

### Patch Changes

- 2ffd5f96: Fixed empty package

## 0.2.0

### Minor Changes

- b6edbc1f: Add support for New Architecture
- a402fd33: Add ability to release the bridge if it is unused when the app is
  backgrounded
- a402fd33: Add bridge lifecycle event callbacks

## 0.1.0

### Minor Changes

- 848548f1: `@rnx-kit/react-native-host` simplifies React Native initialization
