Skip to content

Commit 3f07f88

Browse files
authored
Upgrade NativeModule samples to 0.78 (#1019)
## Description Upgrades the NativeModule samples to 0.78. ### Why Part of the 0.78 release. ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/1019)
1 parent dcc238a commit 3f07f88

File tree

8 files changed

+375
-275
lines changed

8 files changed

+375
-275
lines changed

samples/NativeModuleSample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
These samples showcase building Native Modules for React Native for Windows. It includes implementations in [C#](./csharp/) and [C++/WinRT](./cppwinrt/).
44

5-
Both implementations target React Native Windows 0.77.
5+
Both implementations target React Native Windows 0.78.
66

77
The official documentation can be found here:
88

samples/NativeModuleSample/cppwinrt/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
},
1515
"devDependencies": {
1616
"metro-config": "^0.66.2",
17-
"react": "18.3.1",
18-
"react-native": "0.77.0",
19-
"react-native-windows": "^0.77.0"
17+
"react": "19.0.0",
18+
"react-native": "0.78.0",
19+
"react-native-windows": "0.78.1"
2020
},
2121
"codegenConfig": {
2222
"name": "NativeModuleSample",

samples/NativeModuleSample/cppwinrt/windows/NativeModuleSample/NativeModuleSample.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- This project was created with react-native-windows 0.77.0 -->
2+
<!-- This project was created with react-native-windows 0.78.1 -->
33
<Project ToolsVersion="Current" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
44
<Import Project="$(SolutionDir)\ExperimentalFeatures.props" Condition="Exists('$(SolutionDir)\ExperimentalFeatures.props')" />
55
<PropertyGroup Label="Globals">
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"version": 1,
3+
"dependencies": {
4+
"native,Version=v0.0": {
5+
"Microsoft.UI.Xaml": {
6+
"type": "Direct",
7+
"requested": "[2.8.0, )",
8+
"resolved": "2.8.0",
9+
"contentHash": "vxdHxTr63s5KVtNddMFpgvjBjUH50z7seq/5jLWmmSuf8poxg+sXrywkofUdE8ZstbpO9y3FL/IXXUcPYbeesA==",
10+
"dependencies": {
11+
"Microsoft.Web.WebView2": "1.0.1264.42"
12+
}
13+
},
14+
"Microsoft.Windows.CppWinRT": {
15+
"type": "Direct",
16+
"requested": "[2.0.230706.1, )",
17+
"resolved": "2.0.230706.1",
18+
"contentHash": "l0D7oCw/5X+xIKHqZTi62TtV+1qeSz7KVluNFdrJ9hXsst4ghvqQ/Yhura7JqRdZWBXAuDS0G0KwALptdoxweQ=="
19+
},
20+
"boost": {
21+
"type": "Transitive",
22+
"resolved": "1.83.0",
23+
"contentHash": "cy53VNMzysEMvhBixDe8ujPk67Fcj3v6FPHQnH91NYJNLHpc6jxa2xq9ruCaaJjE4M3YrGSHDi4uUSTGBWw6EQ=="
24+
},
25+
"Microsoft.JavaScript.Hermes": {
26+
"type": "Transitive",
27+
"resolved": "0.1.23",
28+
"contentHash": "cA9t1GjY4Yo0JD1AfA//e1lOwk48hLANfuX6GXrikmEBNZVr2TIX5ONJt5tqCnpZyLz6xGiPDgTfFNKbSfb21g=="
29+
},
30+
"Microsoft.Web.WebView2": {
31+
"type": "Transitive",
32+
"resolved": "1.0.1264.42",
33+
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
34+
},
35+
"common": {
36+
"type": "Project",
37+
"dependencies": {
38+
"boost": "[1.83.0, )"
39+
}
40+
},
41+
"fmt": {
42+
"type": "Project"
43+
},
44+
"folly": {
45+
"type": "Project",
46+
"dependencies": {
47+
"boost": "[1.83.0, )",
48+
"fmt": "[1.0.0, )"
49+
}
50+
},
51+
"microsoft.reactnative": {
52+
"type": "Project",
53+
"dependencies": {
54+
"Common": "[1.0.0, )",
55+
"Folly": "[1.0.0, )",
56+
"Microsoft.JavaScript.Hermes": "[0.1.23, )",
57+
"Microsoft.UI.Xaml": "[2.8.0, )",
58+
"ReactCommon": "[1.0.0, )",
59+
"boost": "[1.83.0, )"
60+
}
61+
},
62+
"reactcommon": {
63+
"type": "Project",
64+
"dependencies": {
65+
"Folly": "[1.0.0, )",
66+
"boost": "[1.83.0, )"
67+
}
68+
}
69+
},
70+
"native,Version=v0.0/win10-arm": {
71+
"Microsoft.Web.WebView2": {
72+
"type": "Transitive",
73+
"resolved": "1.0.1264.42",
74+
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
75+
}
76+
},
77+
"native,Version=v0.0/win10-arm-aot": {
78+
"Microsoft.Web.WebView2": {
79+
"type": "Transitive",
80+
"resolved": "1.0.1264.42",
81+
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
82+
}
83+
},
84+
"native,Version=v0.0/win10-arm64-aot": {
85+
"Microsoft.Web.WebView2": {
86+
"type": "Transitive",
87+
"resolved": "1.0.1264.42",
88+
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
89+
}
90+
},
91+
"native,Version=v0.0/win10-x64": {
92+
"Microsoft.Web.WebView2": {
93+
"type": "Transitive",
94+
"resolved": "1.0.1264.42",
95+
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
96+
}
97+
},
98+
"native,Version=v0.0/win10-x64-aot": {
99+
"Microsoft.Web.WebView2": {
100+
"type": "Transitive",
101+
"resolved": "1.0.1264.42",
102+
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
103+
}
104+
},
105+
"native,Version=v0.0/win10-x86": {
106+
"Microsoft.Web.WebView2": {
107+
"type": "Transitive",
108+
"resolved": "1.0.1264.42",
109+
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
110+
}
111+
},
112+
"native,Version=v0.0/win10-x86-aot": {
113+
"Microsoft.Web.WebView2": {
114+
"type": "Transitive",
115+
"resolved": "1.0.1264.42",
116+
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
117+
}
118+
}
119+
}
120+
}

0 commit comments

Comments
 (0)