NOTE
This PR body was truncated due to platform limits.
This PR contains the following updates:
Release Notes
react/react-native (react-native)
v0.88.1: 0.88.1
Added
- JSI: Forward createValueFromJsonUtf8 in RuntimeDecorator (b5eec4e4f3 by @mrousavy)
- JSI: Run the With hooks around WithRuntimeDecorator::createArrayBuffer (82def6ea4c by @mrousavy)
- JSI: Forward String::length in RuntimeDecorator and WithRuntimeDecorator (be567d270c by @mrousavy)
- Yoga: Fix flex shrink explosion when the shrink total is a positive float residual (24a3be5f99 by @intergalacticspacehighway)
iOS specific
- SwiftPM: the build stops with a clear error when precompiled plugin frameworks and the Xcode project disagree, and the error says what to run. (a920e5db46 by @chrfalch)
Changed
- JSI: Use createError in JSError and forward it in RuntimeDecorator (0cca3a1f77 by @mrousavy)
iOS specific
- Build: Compile React Native's C/C++/Objective-C code with
-O2instead of-Osin Release, and Yoga and glog with-O2in all builds, to match Android (60c817e925 by @chrfalch) - SwiftPM:
spm addandspm updatewrite React Native's build settings toReactNativeSPM/ReactNativeSPM.xcconfigand its build scripts toReactNativeSPM/Scripts/, so a version bump no longer changesproject.pbxproj. A configuration that uses its own xcconfig must now#includethe generated file, and a target setting that hides React Native's value must add$(inherited).spmprints the exact fix in both cases. (cd89e98949 by @chrfalch) - Text: Text without a background color no longer draws a transparent background (0bd33261d1 by @hryhoriiK97)
Fixed
- LogBox: Fix bottom notification appearance/touch targets on iPhone Duo (88a8bd23e8 by @huntie)
- Yoga: Keep the measured pixel size of text nodes when rounding to the pixel grid (fd5392494f by @intergalacticspacehighway)
Android specific
- Text: Fix text measured with the wrong width when
fontVariationSettingsare re-applied to a reusedPaint(96518a8fb9 by @jkadamczyk) - Text: Skip empty and fully hidden text decoration ranges (dbd5b3b770 by @Abbondanzo)
- Text: Fix crash drawing text decoration (underline/strikethrough) when a nested Text's span extends past a numberOfLines-truncated layout (ca8504b1ca by @lazerg)
iOS specific
- Image: Image no longer shows the image of a previous source after its native view is recycled (53bf98bf40 by @mattijsf)
- SafeArea: Fix views with a filter having their content offset by the safe area insets (fea820fa9b by @intergalacticspacehighway)
- StatusBar:
StatusBarstyle and visibility work on iOS 27 for apps built with the iOS 27 SDK whenUIViewControllerBasedStatusBarAppearanceisYES. Custom root view controllers must return theRCTStatusBarAppearancevalues. (bd08dafc98 by @alanjhughes) - SwiftPM: a project set up with skipped codegen no longer fails package resolution on
ReactAppHeaders(e3aa9a1e19 by @chrfalch) - SwiftPM: the build-time sync now runs again when a watched path that did not exist at the last sync appears. (c89f4120ac by @chrfalch)
- SwiftPM: keep line breaks in the scheme pre-action script so that the "Sync SPM Autolinking" pre-action runs. Run
npx react-native spm updateonce to rewrite an existing scheme. (b8df948fd4 by @chrfalch)
Hermes V1 dSYMS:
ReactNativeDependencies dSYMs:
ReactNative Core dSYMs:
You can file issues or pick requests against this release here.
To help you upgrade to this version, you can use the Upgrade Helper ⚛️.
View the whole changelog in the CHANGELOG.md file.
v0.88.0: 0.88.0
Added
- C++: Add
<React/FeatureFlags.h>umbrella header as the public entry point forreact/featureflags(f970054a8a by @j-piasecki) - C++: Add
<React/RendererBridging.h>umbrella header as the public entry point forreact/renderer/bridging(5b680c5f9f by @j-piasecki) - C++: Add
<React/Timing.h>umbrella header as the public entry point forreact/timing(70f172d29f by @j-piasecki) - C++: Added missing mutex include in HostTarget.h (3f8f5c216a by @etodanik)
- EventTarget: Enable the imperative EventTarget API (
addEventListener,removeEventListener,dispatchEvent) on native view refs in canary (8480b86820 by @rubennorte) - Feature Flags: Add
enableImageTransparentTintColorfeature flag (c5bd054983 by @coado) - JavaScript API: Deprecate
'react-native/Libraries/Core/InitializeCore'. Use'react-native/setup-env'instead. (554baba159 by @huntie) - PlatformColor: Support a lazy raw color fallback for PlatformColor when native tokens fail to resolve (65008fcdd0 by @Abbondanzo)
- React Native DevTools: Experimental performance screenshots support and
Page.captureScreenshotis added to theEXPERIMENTALchannel (4be68ef785 by @huntie) - React Native DevTools: Support for inspecting WebSocket events in the Network panel is added to the
CANARYchannel (713ae6b1b9 by @huntie) - React Native DevTools: Users and agents can now capture app screenshots via the
Page.captureScreenshotcommand (00efc0a440 by @huntie) - Text: Add object syntax for
fontVariationSettings(376b99ff14 by @evankatz14) - TypeScript: Add
isInstalled()andclearAllLogs()to theLogBoxTypeScript declarations (a69badd468 by @Abbondanzo) - TypeScript: Add missing strictMode prop to FlatList TypeScript types (3e2403327c by @drhops)
- TypeScript: Add TypeScript declarations for
requestIdleCallbackandcancelIdleCallback(c086431a4b by @Critteros) - VirtualizedList: Add missing ListItemComponent type to VirtualizedList props (5306e9229c by @aravi365)
Android specific
- Feature Flags: Add
enableMountingCoordinatorPullModelAndroidfeature flag (ece0efe837 by @coado) - Network Inspection: Expose network event reporting to third-party networking stacks as an unstable API (83d0be8958 by @huntie)
- Networking: Send app name and version as the default
User-Agentheader for network requests, matching iOS (04e50d540d by Calvin Liu) - Renderer: Add inert Java plumbing (
PullTransactionMountItem,FabricUIManager.onTransactionAvailable) for the pull model (6515647d94 by @coado) - Renderer: Wire the pull-model mounting path in C++ behind
enableMountingCoordinatorPullModelAndroid(9da1a01153 by @coado) - Text: Add
fontVariationSettingssupport for<Text>(19f7d144b9 by @evankatz14) - TextInput: Add
fontVariationSettingssupport forTextInput(a688608090 by @evankatz14) - TurboModules: Add
ArrayBuffer, the Java representation of a JSArrayBufferfor TurboModules, with an explicit byte-ownership contract (5bb9639594 by Kamil Paradowski) - TurboModules: Add ArrayBuffer support to Java TurboModules (5fb3ebce1a by Kamil Paradowski)
- TurboModules: Borrowed
ArrayBufferbytes are scoped to the synchronous call that received them.ArrayBuffer.bytesandArrayBuffer.sizethrowIllegalStateExceptionafterwards, and aByteBufferalready obtained frombytesis unchecked and reads freed memory, so copy withArrayBuffer.arrayBufferWithCopiedBytesto keep them (d84c13d511 by @christophpurrer)
iOS specific
- Text: Add
fontVariationSettingssupport on iOS (8415753e21 by @evankatz14) - Assets: Use asset catalog for ios images (26769a00b2 by @janicduplessis)
- CocoaPods: Add a
React-cxxstableapidependency to third-party New Architecture pods so they can resolve React Native's C++ API guard headers (d3daf111e0 by @coado) - Legacy Architecture: Allow consumers to opt into
RCT_REMOVE_LEGACY_MODULE_INTEROPandRCT_REMOVE_LEGACY_COMPONENT_INTEROPfrom CocoaPods and SwiftPM. Both default to off and will become the default in a future release (b933d18177 by @christophpurrer) - SceneDelegate: Add SceneDelegate lifecycle support (7bfe32fd33 by @artus9033)
- Styles: Print warning advice when using
shadow*styles without providing a solid background color (eb4d3892ab by @hannojg)
Changed
- Babel:
Platform.OSandPlatform.select(...)inlining inreact-native/babel-presetnow requires theinlinePlatformoption in addition toplatform(f63b2a1cb5 by @robhogan) - Babel: Inline
Platform.OSandPlatform.select(...)for React NativePlatformimports during the Babel preset, covering some cases that were previously left un-inlined. (40c06121a1 by @robhogan) - Build: Add React Native Maven pull-through cache fallback for prebuilt artifacts. (3bfb277fec by @coado)
- Events: Enabled Web-based event dispatching refactor (31d33ce91b by @rubennorte)
- Hermes: Bump Hermes to
2603180.0.3 (79024f7c59 by @fabriziocucci) - Hermes: Bump Hermes to
2603180.0.4 (993be7d6c6 by @fabriziocucci) - Hermes: Bump hermes-v1 to
2603180.0.1 (b113cf5864 by @fabriziocucci) - Legacy Architecture: Core components (
ActivityIndicatorView,ModalHostView,PullToRefreshView,SafeAreaView,Switch) no longer report legacyRCT-prefixed names in their view configs (904812016f by @christophpurrer) - Metro: Bump Metro to 0.87.0 (fe511aba7c by @robhogan)
- Metro: Bump the minimum Metro version to 0.87.1, so upgrading projects resolve the same Metro as freshly created ones (f2439a83cf by @robhogan)
- React Native DevTools: When using the fallback flow for launching DevTools (desktop app fails to launch), Microsoft Edge will not be attempted. DevTools will open as a standard window in the default browser. (9efcdfc2b4 by @huntie)
- React: Sync React 19.3.0 into React Native (b0b71421c1 by @rubennorte)
- Runtime:
RuntimeSchedulernow clears pending tasks and rendering updates when a task throws (14184ec643 by @javache) - Runtime: Async
CallInvokerwork is now buffered alongside callable module calls, so it no longer runs before the JS bundle has finished evaluating (3ca6ea3eca by @javache) - Styles: Remove
experimental_prefix frombackgroundSize,backgroundPositionandbackgroundRepeat(7844386bbd by @intergalacticspacehighway) - TypeScript: Allow module augmentation to extend generated props and style types (447ccd1ddb by @zoontek)
- UIManager:
UIManager::startSurfaceandUIManager::setSurfacePropsnow takemoduleNameandpropsby value (85a81818c6 by @javache)
Android specific
- Dev Server: Removed FileIoHandler packager message handlers (e3598fac12 by @javache)
- Image: ImageProps make
tintColoranstd::optionalto support colortransparent(0) with props 2.0 (f535c97904 by @hannojg) - New Architecture: Deprecate fabricEnabled on ReactFragment (c7d62a125c by @javache)
iOS specific
- Build: Prebuilt artifacts: ReactNativeHeaders is pure-RN; third-party deps headers ship in the new ReactNativeDependenciesHeaders.xcframework sidecar (and the ReactNativeDependencies pod), published standalone to Maven (6aa147f6c9 by @chrfalch)
- CocoaPods: Cache Maven repository requests (artifact existence probes, nightly metadata) during pod install to avoid re-issuing identical requests on every podspec evaluation (88feed55c0 by @coado)
- Dev Server: Declare
RCTBundleURLProviderAllowPackagerServerAccessunconditionally (no-op when packager support is compiled out) (54656471a5 by @ramonclaudio) - Dev Server: Make iOS preserve dev bundle as a temp file on par with Android implementation (e2a4c68449 by @tjzel)
- Legacy Architecture: Compile out
RCTGetModuleClasses/RCTRegisterModuleand skip static module registration when bothRCT_REMOVE_LEGACY_MODULE_INTEROPandRCT_REMOVE_LEGACY_COMPONENT_INTEROPare defined (5d62ca4296 by @christophpurrer) - RNTester: Update RNTester and HelloWorld for SceneDelegate lifecycle behavior (609bdddabf by @artus9033)
- StatusBar: Downgrade RCTStatusBarManager error to a warning when UIViewControllerBasedStatusBarAppearance is YES (9e71c443ac by @shwanton)
- SwiftPM: Download SwiftPM prebuilt artifacts from the React Native Maven mirror first, with Maven Central as fallback (c2dac6abcc by @coado)
- TextInput: Adds localization for Text Input default return key types (507023622b by @cipolleschi)
Deprecated
Android specific
- InputAccessoryView: Deprecate
InputAccessoryView(102fde7b6b by @zoontek)
Fixed
- Accessibility: Fix accessibility list role conversion in C++. (aa96fa64d1 by @Abbondanzo)
- Animated:
addListenerfires again for natively drivenAnimatedvalues derived withadd/subtract/multiply/divide/modulo/diffClamp/interpolate(ce621bbd5b by @dennytosp) - Animated: Add
ReactRevisionMergesource to the AnimationBackendCommitHook (ca53751780 by Bartlomiej Bloniarz) - Animated: Perform AnimationEndSync commits on the React revision (7d855222cd by @j-piasecki)
- Babel: Apply normal preset defaults when invoked without a Babel API or options object. (9ad8c830bd by @OskarEichler)
- Babel: Detect trivia-separated React.createClass calls in optimized preset configuration. (619c8aed24 by @OskarEichler)
- Babel: Inline the last duplicate key from static Platform.select object literals. (bbdeb7dc1d by @OskarEichler)
- Babel: Keep private class transforms enabled for profiles that lower classes. (0c0e9f0840 by @OskarEichler)
- Blob: Retain Blob reference in FileReader during pending native reads to prevent premature deallocation by BlobCollector (568eaa6b69 by heecheolman)
- C++: Fixed MSVC compilation of NativeDOM.cpp by removing backticks (e979b0ef8d by @etodanik)
- Codegen: Codegen no longer hangs on type aliases that shadow CodegenTypes member names (42be7452d5 by @sbaiahmed1)
- Codegen: pass the target platform when generating schemas so platform-specific sources (e.g.
NativeModule.ios.ts) resolve correctly (f46ace878a by @Gregoirevda) - Codegen: React-native-codegen build.sh on AppleVirtIOFS volumes (27b5f761b1 by @etodanik)
- Codegen: Run native component codegen when Flow type arguments are separated by trivia. (0d64c9a13a by @OskarEichler)
- DeviceInfo: Refresh
DeviceInfoconstants on each read (9d10e39d32 by @artus9033) - DOM API: Resolve native EventTarget names that overlap Object prototype properties. (621ced78e9 by @OskarEichler)
- EventEmitter: Support EventEmitter event names that overlap Object prototype properties. (790289c1d6 by @OskarEichler)
- FileReader: Fire
loadstart, throwInvalidStateErroron overlapping reads, and exposeFileReader.erroras aDOMException. (544141efab by @Abbondanzo) - FileReader: Keep
FileReaderin the correct state after aborting a read. (e92816c5a5 by @fallintoplace) - Gradients: Fix radial-gradient
at <position>being ignored (and corrupting the size) when it follows an explicit size (66f27eb93e by @Titozzz) - Gradients: Reject percentage radii for circle radial gradients, matching web behavior (5821fcaf5d by @Titozzz)
- Image: Preserve Image source headers when using crossOrigin or referrerPolicy (08c7781e5a by @mfkrause)
- IntersectionObserver: Sort IntersectionObserver threshold arrays numerically. (ee32dfc8b9 by @OskarEichler)
- JavaScript API: Additional Props/Style types are now defined as
interface, fixing compatibility with certain DefinitelyTyped packages (593ae0258d by @huntie) - JavaScript API: Fix requestIdleCallback timeout option being ignored (0a1a06c5ea by @pakerwreah)
- Networking: Fix XMLHttpRequest.setRequestHeader to append duplicate headers per spec (58bf844967 by @zmunm)
- Networking: Preserve buffered and empty Cxx WebSocket frames and serialize writes. (92cd588a5c by @OskarEichler)
- Performance: Round instead of truncate when converting a
DOMHighResTimeStampback to nanoseconds, soHighResTimeStampandHighResDurationround trips are exact (c467843ed0 by @GijsWeterings) - ScrollView: Fix maintainVisibleContentPosition with rapid data updates (#53542) (5cb65244dc by @kulkarni-rohan)
- Styles: Fix
transformOriginstring parsing for decimal percentage and pixel values. (0a60ec9dea by @MayankSharma-2812) - Styles: Preserve negative values in
transformOriginstrings. (4501979c1a by @fallintoplace) - StyleSheet: Use cached results for already normalised colors (092734772a by @riteshshukla04)
- Text: Fix Text truncation when string contains NULL character \u0000 (#24129) (5906cfb060 by @kulkarni-rohan)
- Text: Prevent Text from mutating the accessibilityState prop (c300f84f2c by @mfkrause)
- TextInput: blur focused input before unregistering it on unmount, fixing the Android soft keyboard staying open after navigating away from a focused input (d13d2b0a5f by @sidorchukandrew)
- TurboModules: Revert the
RCTArrayBuffercodegen change, restoringNSMutableData *for ObjC TurboModule methods that take or return anArrayBuffer. 0.88 is a non-breaking release, and the change stopped modules that adopted ObjCArrayBuffersupport in 0.87 from compiling (639cdedb50, 19a3184981 by @fabriziocucci) - TurboModules: Revert the rejection of
ArrayBufferas a TurboModuleEventEmitterpayload. C++ TurboModules could declareEventEmitter<ArrayBuffer>in 0.87 and it generated working code, so rejecting it at codegen time broke those builds (070af03ab3 by @fabriziocucci) - TurboModules: TurboModule event emitters no longer throw when an event is emitted before the emitter callback is installed (4bf5575490 by @christophpurrer)
- TypeScript: Add missing types for the public
AssetRegistryAPI (b8ec87e457 by @byCedric) - TypeScript: Fix TS2883 when building declaration files for libraries that use
codegenNativeComponentdue to unreachableNativeComponentType<T>(391723e869 by @artus9033) - TypeScript: Restore the
.jsfallback for legacy deep imports of untyped modules, soreact-native/Libraries/*specifiers resolve again under thereact-native-legacy-deep-importscondition (579212e15c by @fabriziocucci) - VirtualizedList: Fix the Metro package-exports warning caused by
react-native/virtualized-listsimporting an unexported React Native subpath (a506ed66cc by @giaBaoJS) - VirtualizedList: Ignore stale viewability updates while enforcing minimum view time (1c4a46f4e3 by @cipolleschi)
- VirtualizedList: Invalidate list content length when orientation changes. (e59a1d252c by @fallintoplace)
- VirtualizedList: Prevent zero-sized lists from reporting viewable items (c057b1fa01 by @Abbondanzo)
Android specific
- Accessibility: Fix crash when
accessibilityRole="tabbar"is used on Android (a4733b1ca1 by @aravi365) - Accessibility: Properly re-enable a view after
accessibilityState.disabledresets fromtrue, which leftPressablepartly untappable (357b6998c4 by @bigcupcoffee) - Build: Export
jserrorhandlerheaders in thereactnativeprefab so external consumers of cxxreact/ErrorUtils.h can build. (f2a6db9fce by @alanjhughes) - Dev Menu: Persist Change Bundle Location debug server host changes (d2ac190411 by @Phecda)
- Dev Server: Stop dev server WebSockets from throttling bundle downloads and other dev server requests (cc5dd59742 by @javache)
- Gradle: Use the JVM temp dir instead of a hardcoded
/tmpfor the build-from-source container project dirs, fixing Gradle configuration on Windows (908872a68e by @kraenhansen) - i18n: Detect RTL from the active locale instead of an arbitrary installed one (e46189e1e1 by @zoontek)
- Image: Deprecate the
String?overloads ofReactImageManager#setDefaultSourceandReactImageManager#setLoadingIndicatorSource(3a95e0e93c by @hannojg) - Image: Fix
Image.getSize()andImage.getSizeWithHeaders()rejectingdata:URIs (8cfde6d083 by Cole Huntley) - Image: Fix crash when setting a percentage borderRadius on Image (f2a250ad89 by @sbaiahmed1)
- Renderer: Bump androidx.collection to 1.4.4 to fix view registry entries getting lost in
SurfaceMountingManager(d6a5f159c6 by @pawicao) - Renderer: Fix IllegalStateException in SurfaceMountingManager.removeViewAt (3f553d76bc by @cortinico)
- Renderer: Pull model mounting is now deferred until the root attaches (2f5a8332cf by Bartlomiej Bloniarz)
- Runtime: Prevent a startup crash when the WindowMetrics API is missing on an inconsistent Android runtime (3f9cc72309 by @gooddev97)
- Runtime: Report a fatal JS error instead of aborting the process when reading the error's extra data fails (41b375eb04 by generatedunixname1608173377072046)
- Styles: Fix crashes when
outlineColoris provided as a numeric color value (53b933feca by HURRAEY) - Text: Fix Text with adjustsFontSizeToFit being clipped when container height decreases dynamically (63064687e2 by @imsankalp)
- Text: Keep inline views inside Text from shrinking with Android system font scale (551d12a787 by @TorinAsakura)
- TextInput: Ellipsize long single-line TextInput placeholders to match iOS (7f18ad0f84 by @kosmydel)
- TextInput: Show the soft keyboard when a long-press starts text selection in TextInput (9195e52706 by @idoyana)
- View: Resetting border widths no longer clips children in rounded overflow-hidden views. (146aaac7ee by @RealBhupesh)
- ViewManagers: Fix
Doubleprop defaults being rounded to float precision in generatedViewManagerdelegates (2c4278d83b by @dennytosp) - ViewManagers: Fix `RuntimeException: Unrecognized typ
IMPORTANT
✂ PR body was truncated to here.
Configuration
📅 Schedule: (UTC)
- Branch creation
- "every weekend"
- Automerge
- At any time (no schedule defined)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
Activity
7Review the following changes in direct dependencies. Learn more about Socket for GitHub.
| Diff | Package | Supply Chain Security | Vulnerability | Quality | Maintenance | License |
|---|---|---|---|---|---|---|
| npm/react-native-safe-area-context@5.7.0 ⏵ 5.11.1 | +1 | +2 | ||||
| npm/react-native-worklets@0.10.1 ⏵ 0.14.0 | -1 | |||||
| npm/react-native-reanimated@4.5.1 ⏵ 4.8.0 | -1 | |||||
| npm/react-native-svg@15.15.4 ⏵ 15.16.2 | +1 | +3 | ||||
| npm/react-native-gesture-handler@2.32.0 ⏵ 2.33.1 | +1 | +1 | ||||
| npm/react-native-webview@13.16.1 ⏵ 13.17.0 | +2 | +7 | ||||
| npm/react-native@0.86.2 ⏵ 0.88.1 | +1 | |||||
| npm/react-native-screens@4.26.2 ⏵ 4.30.1 | +1 |
Coverage Report
Generated by coverage workflow