Skip to content

Commit 473b7a5

Browse files
Update Native lib to 0.81 (#1119)
## Description Update Native lib to 0.81 ### Why Update Native lib to 0.81 ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/1119)
1 parent ce79b6e commit 473b7a5

File tree

7 files changed

+384
-263
lines changed

7 files changed

+384
-263
lines changed

samples/NativeModuleSample/cpp-lib/example-old/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
},
1010
"dependencies": {
1111
"react": "19.1.0",
12-
"react-native": "0.80.0",
13-
"react-native-windows": "0.80.0"
12+
"react-native": "0.81.5",
13+
"react-native-windows": "0.81.0"
1414
},
1515
"devDependencies": {
1616
"@babel/core": "^7.25.2",
@@ -19,9 +19,9 @@
1919
"@react-native-community/cli": "17.0.0",
2020
"@react-native-community/cli-platform-android": "17.0.0",
2121
"@react-native-community/cli-platform-ios": "17.0.0",
22-
"@react-native/babel-preset": "0.80.0",
23-
"@react-native/metro-config": "0.80.0",
24-
"@react-native/typescript-config": "0.80.0",
22+
"@react-native/babel-preset": "0.81.0",
23+
"@react-native/metro-config": "0.81.0",
24+
"@react-native/typescript-config": "0.81.0",
2525
"@rnx-kit/jest-preset": "^0.1.17"
2626
},
2727
"engines": {

samples/NativeModuleSample/cpp-lib/example/metro.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
22
const fs = require('fs');
33
const path = require('path');
44
const escape = require('escape-string-regexp');
5-
const exclusionList = require('metro-config/src/defaults/exclusionList');
65
const pack = require('../package.json');
76

87
const root = path.resolve(__dirname, '..');
@@ -28,7 +27,7 @@ const config = {
2827
// We need to make sure that only one version is loaded for peerDependencies
2928
// So we block them at the root, and alias them to the versions in example's node_modules
3029
resolver: {
31-
blacklistRE: exclusionList(
30+
blacklistRE:
3231
modules.map(
3332
(m) =>
3433
new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`)
@@ -42,7 +41,7 @@ const config = {
4241
new RegExp(`${rnwPath}/target/.*`),
4342
/.*\.ProjectImports\.zip/,
4443
])
45-
),
44+
,
4645

4746
extraNodeModules: modules.reduce((acc, name) => {
4847
acc[name] = path.join(__dirname, 'node_modules', name);

samples/NativeModuleSample/cpp-lib/example/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
},
1010
"dependencies": {
1111
"react": "19.1.0",
12-
"react-native": "0.80.0",
13-
"react-native-windows": "0.80.0"
12+
"react-native": "0.81.5",
13+
"react-native-windows": "0.81.0"
1414
},
1515
"devDependencies": {
1616
"@babel/core": "^7.25.2",
@@ -19,9 +19,9 @@
1919
"@react-native-community/cli": "17.0.0",
2020
"@react-native-community/cli-platform-android": "17.0.0",
2121
"@react-native-community/cli-platform-ios": "17.0.0",
22-
"@react-native/babel-preset": "0.80.0",
23-
"@react-native/metro-config": "0.80.0",
24-
"@react-native/typescript-config": "0.80.0",
22+
"@react-native/babel-preset": "0.81.0",
23+
"@react-native/metro-config": "0.81.0",
24+
"@react-native/typescript-config": "0.81.0",
2525
"@rnx-kit/jest-preset": "^0.1.17"
2626
},
2727
"engines": {

samples/NativeModuleSample/cpp-lib/example/windows/NativeModuleSampleExample/NativeModuleSampleExample.vcxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@
6868
</ImportGroup>
6969
<ItemGroup>
7070
<PackageReference Include="Microsoft.ReactNative">
71-
<Version>0.80.0</Version>
71+
<Version>0.81.0</Version>
7272
</PackageReference>
7373
<PackageReference Include="Microsoft.ReactNative.Cxx">
74-
<Version>0.80.0</Version>
74+
<Version>0.81.0</Version>
7575
</PackageReference>
7676
</ItemGroup>
7777
<ItemDefinitionGroup>
@@ -140,4 +140,4 @@
140140
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Composition.CppApp.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Composition.CppApp.props'))" />
141141
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Composition.CppApp.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Composition.CppApp.targets'))" />
142142
</Target>
143-
</Project>
143+
</Project>

samples/NativeModuleSample/cpp-lib/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,18 @@
5555
},
5656
"devDependencies": {
5757
"@react-native-community/cli": "17.0.0",
58-
"@react-native/eslint-config": "0.80.0",
58+
"@react-native/eslint-config": "0.81.0",
5959
"@types/jest": "^29.5.5",
60-
"@types/react": "^19.0.0",
60+
"@types/react": "19.1.0",
6161
"eslint": "^8.51.0",
6262
"eslint-config-prettier": "^9.0.0",
6363
"eslint-plugin-prettier": "^5.0.1",
6464
"jest": "^29.7.0",
6565
"prettier": "^3.0.3",
6666
"react": "19.1.0",
67-
"react-native": "0.80.0",
67+
"react-native": "0.81.5",
6868
"react-native-builder-bob": "^0.31.0",
69-
"react-native-windows": "0.80.0",
69+
"react-native-windows": "0.81.0",
7070
"typescript": "^5.2.2"
7171
},
7272
"resolutions": {

samples/NativeModuleSample/cpp-lib/windows/NativeModuleSample/NativeModuleSample.vcxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@
7070
</ImportGroup>
7171
<ItemGroup>
7272
<PackageReference Include="Microsoft.ReactNative">
73-
<Version>0.80.0</Version>
73+
<Version>0.81.0</Version>
7474
</PackageReference>
7575
<PackageReference Include="Microsoft.ReactNative.Cxx">
76-
<Version>0.80.0</Version>
76+
<Version>0.81.0</Version>
7777
</PackageReference>
7878
</ItemGroup>
7979
<ItemDefinitionGroup>
@@ -148,4 +148,4 @@
148148
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props'))" />
149149
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets'))" />
150150
</Target>
151-
</Project>
151+
</Project>

0 commit comments

Comments
 (0)