We're excited to release React Native Windows 0.74.0 targeting React Native 0.74.0. There have been many changes to both react-native-windows and react-native itself, and we would love your feedback on anything that doesn't work as expected. This release includes the commits to React Native Windows from 10/12/2023 – 3/24/2024.
How to upgrade
You can view the changes made to the default new React Native Windows applications for C++ and C# using React Native Upgrade Helper. See this document for more details.
What's new from React Native Windows
Reliability
- Fixes issues with packaged asset resolution. Fixes issues with packaged asset resolution (#11168) · microsoft/react-native-windows@e3c7f02 (github.com)
- Fixes compilation of Microsoft.ReactNative without USE_V8 compile constant. Move winrt/Windows.Storage.h include out of USE_V8 conditional (#11168) · microsoft/react-native-windows@66dc977 (github.com)
- Updates app template's metro config with latest upstream changes. Update app template's metro config with latest upstream changes (#12279) · microsoft/react-native-windows@68094c0 (github.com)
- Fixes momentum scroll events. Fix event dispatch names for momentum scroll (#12278) · microsoft/react-native-windows@1367b74 (github.com)
- Convertes publish.yml ADO pipeline to extend the v1/1ES.Official.PipelineTemplate.yml template. Migrate publish.yml to 1ES PT (#12302) · microsoft/react-native-windows@6fa6daa ( github.com)
- Fixes ReactContext from having extra references. ReactContext should have a weak ref on the PropertyBag · microsoft/react-native-windows@325195c ( github.com)
- Fixes InstanceDestroyed event failing with ReactPropertyBag . Keep propertyBag alive for duration of InstanceDestroyed event (#12364) · microsoft/react-native-windows@b87abc8 ( github.com)
- Prevents HTTP response memory leaks. Untrack HTTP responses when processed by IResponseHandler (#12378) · microsoft/react-native-windows@ea58fe0 ( github.com)
- Ensure both property and value exist for Blob's HTTP proxy. Ensure both property and value exist for Blob's HTTP proxy (#12417) · microsoft/react-native-windows@b84ca2d ( github.com)
- Regularly clean JSI long-lived objects. Release long lived JSI objects ASAP (#12385) · microsoft/react-native-windows@c7cc92b ( github.com)
- Enables the /PROFILE linker flag for all C++ release binaries. Enable the /PROFILE linker flag for all C++ release binaries (#12313) · microsoft/react-native-windows@3bb7adb ( github.com)
- Fixes Base64 encoding for FileReader. Fix FileReader Base64 padding (#12522) · microsoft/react-native-windows@34ae417( github.com)
- Unforks and modularizes Yoga files. Unfork and modularize Yoga (#12591) · microsoft/react-native-windows@a948daf ( github.com)
- Enforces Origin headers on WebSocket conncections. Ensure origin in WebSocket headers (#12643) · microsoft/react-native-windows@05bfd0c ( github.com)
- Fixes hasViewManagerConfig checks returning truthy values. Return null for missing view manager constants (#12685) · microsoft/react-native-windows@ee68f5f ( github.com)
- Fixes UI Scheduler deadlocking on shutdown. Fix UIScheduler deadlock on shutdown (#12738) · microsoft/react-native-windows@ e2bf3e2 ( github.com)
- Updated WindowsAppSDK dependency to 1.4.240211001. Update WinAppSDK versions to latest public builds (#12747) · microsoft/react-native-windows@9bd3906 ( github.com)
- Fixed arch cpp-app apps not finding the bundle in release builds. Fix issue with new arch cpp-app apps not finding the bundle in release builds (#12754) · microsoft/react-native-windows@e694482 ( github.com)
- Fixed loading images from file:// URIs (as used for assets in on-disk bundles). Fix loading images from file:// URIs (#12757) · microsoft/react-native-windows@41e884a ( github.com)
Accessibility
- Adds ARIA role rupport. Adds ARIA role support to Paper UIManager (#12792) · microsoft/react-native-windows@bc70cea ( github.com)
- Adds support for announceForAccessibilityWithOptions. [Win32] Add support for announceForAccessibilityWithOptions (#12237) · microsoft/react-native-windows@7fda7f0 ( github.com)
New Features
- Adds disabled property to props being passed into Pressable component. Add disabled property to props being passed into Pressable component (#12799) · microsoft/react-native-windows@b129040 ( github.com)
- Implement BlobCollector. Implement BlobCollector (#12269) · microsoft/react-native-windows@0b31812 ( github.com)
- Adds property to ReactPointerEventArgs to allow view managers to capture the pointer. Adds option to allow ViewManagers to capture pointer (#8969) · microsoft/react-native-windows@0f6bdf3 ( github.com)
- Creates new cpp-lib arch module template. Create new arch module template: cpp-lib (#12481) · microsoft/react-native-windows@6164875 ( github.com)
- Updated the experimental cpp-lib and cpp-app templates to support targeting ARM64. Add ARM64 to new arch templates (#12635) · microsoft/react-native-windows@404db90 ( github.com)
- Move React Native Windows to default to C++20. Update to C++20 (#12656) · microsoft/react-native-windows@adefdee ( github.com)
- Enable custom timer factory to be provided. Enable custom timer factory to be provided (#12856) · microsoft/react-native-windows@34c5cd8 ( github.com)
Breaking Changes
- Deprecate web debugging to align with core, we recommend using direct debugging instead for all engines other than Hermes. Hermes is currently facing issues with direct debugging and we are working on a fix to release in a patch version. You can track our work here. Deprecate web debugging (#12724) · microsoft/react-native-windows@0211cdb ( github.com)
- Deprecates and removes the experimental CoreApp APIs and prototype app. Deprecate and remove the experimental CoreApp APIs and prototype app (#12730) · microsoft/react-native-windows@3052257 ( github.com)
- Simplify Flyout and Popup coordinate spaces. Simplify Flyout and Popup coordinate spaces (#11822) · microsoft/react-native-windows@d603706 ( github.com)