Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of React Native Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-react-native-knowledge-patch-nevaberry-plugins)
---
name: react-native-knowledge-patch
description: React Native
version: "0.88.1"
license: MIT
metadata:
author: Nevaberry
---
# React Native compatibility guidance
Load this skill for React Native upgrades, native extension migrations, build
integration, platform behavior, and development tooling. The topic references
contain the complete guidance, examples, and release-specific conditions.
## Reference index
| Reference | Topics |
| --- | --- |
| [Upgrades and architecture](references/upgrades-and-architecture.md) | Build requirements, precompiled iOS core, legacy interoperability, JavaScript engines, symbolication, SwiftPM |
| [Native extension migrations](references/native-extension-migrations.md) | App delegates, embedding, TurboModules, Codegen, ArrayBuffer ownership, Android and C++ API changes |
| [JavaScript and observability](references/javascript-and-observability.md) | Environment setup, imports, types, errors, Performance APIs, DevTools |
| [Metro, networking, and tooling](references/metro-networking-and-tooling.md) | Resolution, CLI, TLS, Babel, Jest, optimized debug builds, native networking |
| [Platform behavior](references/platform-behavior.md) | Navigation, measurements, input, touch handling, status bars, privacy, accessibility |
| [UI components and styling](references/ui-components-and-styling.md) | Layout, compositing, images, fonts, native refs, Pressable, Modal, animations |
## Breaking changes and deprecations
### JavaScript entry points and types
Replace imports of the deprecated `react-native/Libraries/Core/InitializeCore`
with `import 'react-native/setup-env';`.
Some internal modules converted to ES exports in 0.79: deep `require()` calls
can return the default export under `.default`; named-only modules need a
namespace or named import. In 0.80, deep imports trigger app-source warnings.
Use root imports such as `import {ImageBackground} from 'react-native'` and
opt into the generated, root-only Strict TypeScript API in `tsconfig.json`.
### Removed and renamed UI APIs
0.85 removes `StyleSheet.absoluteFillObject`. Use `StyleSheet.absoluteFill`
for the standard fill style, or define absolute positioning offsets directly
for custom layouts. Migrate `experimental_backgroundSize`,
`experimental_backgroundPosition`, and `experimental_backgroundRepeat` to
`backgroundSize`, `backgroundPosition`, and `backgroundRepeat`.
In 0.85, migrate from `AccessibilityInfo.setAccessibilityFocus` to
`AccessibilityInfo.sendAccessibilityEvent`. `InputAccessoryView` is deprecated
on Android, as is `ReactFragment.fabricEnabled`.
### Error reporting and instrumentation
In 0.81, check whether reporting that relies on `console.error` needs to account
for errors now reported as uncaught. In 0.82, unhandled promise rejections
surface through uncaught JavaScript error reporting and can appear in the
console and existing error-reporting integrations after an upgrade.
In 0.86.0, set `reportErrorsAsExceptions` to the boolean `false` to opt out;
replace falsy placeholders such as `null` or `0` with `false`.
The second argument passed to the hook registered with
`AppRegistry.setComponentProviderInstrumentationHook` is deprecated and now
warns when called. Remove calls to that argument from instrumentation hooks.
### Native extension migration points
In 0.85, `ReactTextUpdate` becomes internal, `UIManagerHelper` and
`ReactZIndexedViewGroup` are deprecated, `CatalystInstanceImpl` is removed,
and `NativeViewHierarchyManager` is stubbed out. Migrate host runtime delegate
methods from the deprecated `RCTHostRuntimeDelegate` to `RCTHostDelegate`.
For 0.81 libraries with custom CMake files, apply the matching React Native
C++ flags, including `RN_SERIALIZABLE_STATE`, after declaring the library target:
`target_compile_reactnative_options(myLibraryName PRIVATE)`.
See the native extension reference for other removals and signature changes.
### Java TurboModule buffer ownership
Borrowed `ArrayBuffer` bytes are valid only during the synchronous call that
receives them. Copy them inside that call with
`ArrayBuffer.arrayBufferWithCopiedBytes` for later use. Subsequent `bytes` or
`size` access throws `IllegalStateException`, and a previously obtained
`ByteBuffer` can read freed memory.
Objective-C TurboModule methods taking or returning a JavaScript `ArrayBuffer`
use `NSMutableData *`; Codegen accepts `EventEmitter<ArrayBuffer>` for C++.
### Networking interceptors
Android's `sendRequestInternal` is deprecated in 0.83. In 0.84, tooling using
`XHRInterceptor` or `WebSocketInterceptor` should migrate to the CDP `Network`
domain. See the networking reference for native request customization APIs.
## Build and engine choices
### Build requirements and package compatibility
0.81 requires Node.js 20.19.4 or newer and Xcode 16.1 or newer for iOS builds.
0.84 requires Node.js 22.11 or later; 0.85 supports the 20.x line from 20.19.4,
the 22.x line, and 24 or later. React Native 0.88.0 integrates React 19.3.0
and raises the minimum Metro version to 0.87.1.
React Native 0.86.1 was never published because of a Maven issue;
upgrade directly from 0.86.0 to 0.86.2.
### Precompiled iOS core and legacy code
Starting in 0.84, pod installation uses the prebuilt React Native core
`.xcframework` by default. To build core from source, run:
```sh
RCT_USE_PREBUILT_RNCORE=0 bundle exec pod install
```
In 0.84, iOS builds omit Legacy Architecture code by default and retain the
interoperability layer. To restore compiled code for a native dependency,
install pods with `RCT_USE_PREBUILT_RNCORE=0 RCT_REMOVE_LEGACY_ARCH=0`.
CocoaPods and SwiftPM builds can set `RCT_REMOVE_LEGACY_MODULE_INTEROP` and
`RCT_REMOVE_LEGACY_COMPONENT_INTEROP` to opt out of the corresponding legacy
layers. Both default to off; enabling both removes `RCTGetModuleClasses`,
`RCTRegisterModule`, and static module registration.
The upgrades reference includes experimental precompiled-build setup and
precompiled-core debugging instructions.
### JavaScript engines and native crash symbols
JavaScriptCore apps require `@react-native-community/javascriptcore` in 0.81,
when built-in JavaScriptCore is removed. Pod installation skips Hermes pods
when `USE_THIRD_PARTY_JSC` is enabled.
Hermes V1 is the default in 0.84. To use the previous Hermes release, pin
`hermes-compiler` to `0.15.0`; Android needs `hermesV1Enabled=false` and a
React Native source build. On iOS, use:
```sh
RCT_HERMES_V1_ENABLED=0 RCT_USE_PREBUILT_RNCORE=0 bundle exec pod install
```
For Hermes V1 native crash symbolication, match the dSYM to Debug or Release
and the app's Hermes version: `250829098.0.16` for React Native 0.86.2,
`260318099.0.4` for 0.88.0, and `260318099.0.5` for 0.88.1.
### SwiftPM upgrades
In 0.88.1, `spm add` and `spm update` write build settings to
`ReactNativeSPM/ReactNativeSPM.xcconfig` and build scripts to
`ReactNativeSPM/Scripts/`. In a custom xcconfig beside that directory, add
`#include "ReactNativeSPM/ReactNativeSPM.xcconfig"`; add `$(inherited)` to target
settings that override React Native's values. After upgrading an existing
SwiftPM project to 0.88.1, run `npx react-native spm update` once to regenerate
the scheme's Sync SPM Autolinking pre-action.
## Metro and development workflow
### Resolution, launch, and tests
React Native 0.79 enables `package.json` `"imports"` and `"exports"` resolution
by default in Metro 0.82. If package export resolution breaks a dependency,
set `resolver.unstable_enablePackageExports = false` in `metro.config.js`.
0.77 drops Metro's `a` and `i` shortcuts and turns off JavaScript log streaming.
Run `run-android` and `run-ios` directly; in 0.78, opt back into streaming with
`npx @react-native-community/cli start --client-logs`.
In 0.85, install `@react-native/jest-preset` as a development dependency and
set `preset: '@react-native/jest-preset'` in the Jest configuration.
### Optimized debugging and server transport
Use `npx react-native run-android --mode debugOptimized` or
`npx expo run:android --variant debugOptimized` for an optimized native build
with JavaScript DevTools. Choose plain `debug` for C++ debugging. This build
type was also backported to 0.81 and Expo SDK 54.
In 0.85, set `server.tls` on the exported Metro configuration for HTTPS bundles
and WSS Fast Refresh; set `reactNativeDevServerIp` in `android/gradle.properties`
to specify the development server IP at build time.
## UI and platform quick reference
### Native refs and layout animations
From 0.82, native component refs expose a subset of DOM node APIs, including
`parentElement`, `childNodes`, `getBoundingClientRect()`, and
`ownerDocument.getElementById()`. Existing helpers such as `measure()` continue
to work. The 0.88 Canary release level supports `addEventListener`,
`removeEventListener`, and `dispatchEvent` on native view refs.
Starting with 0.85.1 on the experimental release level, the Shared Animation
Backend lets `Animated` drive layout properties such as `width`, Flexbox,
and position with `useNativeDriver: true`.
### Images, fonts, and containers
In 0.78, `Image` can load build-time Android vector or shape XML drawables.
Set both dimensions explicitly, and rebuild the Android app when adding or
moving a drawable because Metro cannot serve the XML over the network.
For variable fonts, set axes by tag on Android and iOS `Text`, for example
`<Text style={{fontVariationSettings: {wght: 650}}}>Title</Text>`.
Android supports `fontVariationSettings` on `TextInput` too.
In 0.86.0, `Modal` forwards `style` to its inner container `View`;
`transparent` and `backdropColor` still control the backdrop.
### Navigation, appearance, and touch handling
0.81 targets API 36 by default, with mandatory edge-to-edge and predictive
back enabled by default. If custom native code overrides `onBackPressed()`,
migrate or temporarily opt out of predictive back. Set `edgeToEdgeEnabled=true`
in `gradle.properties` for edge-to-edge on supported older Android releases.
In 0.82, call `Appearance.setColorScheme('unspecified')` to follow the system
setting again. In 0.86.0, Android and iOS views with a non-invertible transform,
such as `scaleX: 0` or `scaleY: 0`, are excluded from touch hit-testing.
## Performance and DevTools quick reference
Web Performance APIs become stable in 0.83 after 0.82 Canary support. Use
`performance.mark()`, `performance.measure()`, and `performance.getEntries*()`
for timings, and `PerformanceObserver` for entries such as `event` and
`longtask`, including in production builds. In 0.86.0, event observations
default to a 104 ms `durationThreshold`; observe shorter events with
`observer.observe({type: 'event', durationThreshold: 16})`.
0.83 Canary adds `IntersectionObserver` for asynchronous intersections between
a native element and an ancestor.
0.83 DevTools records `fetch`, `XMLHttpRequest`, and `Image` requests with
initiators and Performance timeline integration. Expo-specific sources use
the separate Expo Network panel, whose captures lack those features.
On the experimental release level, `Page.captureScreenshot` captures an app
screenshot, and the Performance panel supports screenshots in recordings.
The Canary release level adds WebSocket events to the DevTools Network panel.