We're excited to release React Native Windows 0.73.0-preview.1 targeting React Native 0.73.0-rc.1. 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 6/23/2023 – 10/12/2023.
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
- Drops Cxx Modules in favor of TurboModules for networking Features to improve efficiency. Use TurboModules for networking in MSRN (#11168) · microsoft/react-native-windows@41e884a (github.com)
- Fixes FileReader turbo module's argument handling to use correct data types in FileReaderTurboModule::ReadAs*. Use correct data types in FileReaderTurboModule::ReadAs*(#11902) · microsoft/react-native-windows@df09b65 (github.com)
- Customers who specify their own version of Microsoft.Windows.CppWinRT can now use versions >= 2.0.230524.3. Enable using newer CppWinRT versions that use WINRT_IMPL_LoadLibraryExW (#11953) · microsoft/react-native-windows@e68fcf4 (github.com)
- Properly detect the correct machine architecture for 32-bit Node on 64-bit Windows scenarios. Properly detect the correct machine architecture in CLI (#11978) · microsoft/react-native-windows@0547552 (github.com)
- Fix for NPE when blur command is received while React instance is shutting down. Fix bug when blur command received on node without XamlRoot (#12051) · microsoft/react-native-windows@97a386c (github.com)
Accessibility
- Properly implements accessibilityState by allowing null values for accessibility states and clearing unset states. Fix accessibilityState to support states not being set (#11792) · microsoft/react-native-windows@13c1223 (github.com)
New Features
- Now able to use new CLI init-windows commands. Create new CLI init-windows command (#12123) · microsoft/react-native-windows@de07af9 (github.com)
- Define an HTTP module based on the modern REACT_MODULE type system. Define HTTP TurboModule (#11825) · microsoft/react-native-windows@873bbb0 (github.com)
- Adds cppStringType option to @rnw/codegen. Add cppStringType option to @rnw/codegen (#11833) · microsoft/react-native-windows@5a3dcf7 (github.com)
- Adds REACT_MODULE_NOREG which is REACT_MODULE but without auto registration. Add REACT_MODULE_NOREG which is REACT_MODULE but without auto registration (#11849) · microsoft/react-native-windows@19cf1ad (github.com)
- Allows the disabling Blob Cxx modules. Allow disabling Blob Cxx module (#11979) · microsoft/react-native-windows@bde337f (github.com)
- npx react-native codegen-windows will generate two files if there is any custom type to generate. The additional file NativeXXXDataTypes.g.h contains all generated custom types. Generate types and spec in two files for turbo module (#11990) · microsoft/react-native-windows@690d70c (github.com)
- Adds configConfig.windows.cppStringType in package.json for @rnw/codegen. Add configConfig.windows.cppStringType in package.json for @rnw/codeg… (#11848)· microsoft/react-native-windows@dcf95f7 (github.com)
Breaking Changes
- Follows RNW and bump minimum Node version to 18. Integrate RN Nightly 6/28, bumps node from 16 to 18 (#11858) · microsoft/react-native-windows@4dae247 (github.com)
- The Microsoft.ReactNative.WindowsAppSDK experimental project has been deprecated and will no longer be supported (track its replacement here: https://aka.ms/rnw-roadmap). Deprecate Microsoft.ReactNative.WindowsAppSDK project (#11945) · microsoft/react-native-windows@7212312 (github.com)