CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 02:56:31 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/microsoft/react-native-windows.git
etag: W/"e4f64a608dfd0cecca3ece5e1e3aaed8"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=niCC6FzYDHY3c5cPnlrkTjQ3Y0nHZU7cf9MXK5d%2BLPZOMRheGavSOX%2BSpsGY0gOJ0mcDxQLJvxdtf9hGG3NwSbrM9x2GhynYUMrUpF%2FV5NkfXLjphLhCexZnxFOUtchCtvXvhkyPDBmp6iFOxqhGDMnPvqkRypKiMsiZkCpXvFEdCG9x5Tp5ED3b2mWXNHpM4i3oBjjAILP2Z9n%2BBuEmjEaBbdk%2FmUKZKKlmXv6LpxsIbxveyGEXrJ%2BpQGNjyQeb5SR8ITWpRdt5qa63Jpv9Jg%3D%3D--xskPpDtXdKMjKhOB--aM1ypr9Lais4oCSJwbdoPw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.309543030.1753412190; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 02:56:30 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 02:56:30 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8A7A:3FCB1:E56B0:157AE0:6882F25E
Create new arch module template: cpp-lib (#12481) · microsoft/react-native-windows@6164875 · GitHub
Copy file name to clipboardExpand all lines: .ado/jobs/cli-init-windows.yml
Copy file name to clipboardExpand all lines: .ado/templates/react-native-init-windows.yml
Copy file name to clipboard
Copy file name to clipboardExpand all lines: vnext/PropertySheets/External/Microsoft.ReactNative.Composition.Common.props
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboardExpand all lines: vnext/templates/cpp-app/metro.config.js
Copy file name to clipboardExpand all lines: vnext/templates/cpp-app/template.config.js
Copy file name to clipboardExpand all lines: vnext/templates/cpp-app/windows/ExperimentalFeatures.props
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit 6164875
authored
Create new arch module template: cpp-lib (#12481)
## Description
Adds a new `cpp-lib` template designed to be applied on top of the new projects created by the (now recommended) `create-react-native-library` script. Also updates the `cpp-app` template to be able to autolink and run these new libraries.
### Type of Change
- New feature (non-breaking change which adds functionality)
- This change requires a documentation update
### Why
Devs need to add windows support to native modules in a way which can be consumed by the new arch RNW apps (i.e. the `cpp-app` template).
Resolves #12480
### What
Create a new `cpp-lib` template which can be applied on top of the template created by `npx create-react-native-library`, adding Windows support for a turbo module. It will also automatically apply the `cpp-app` template to the example project if it exists.
## Screenshots
<img width="441" alt="image" src="https://github.com/microsoft/react-native-windows/assets/10852185/f5f31727-a233-419c-8afe-ad91f797abb2">
## Testing
Verified the new template could be applied to a fresh library created by `create-react-native-library` and that example app autolinks, builds, and runs correctly.
## Changelog
Should this change be included in the release notes: yes
Created a new arch module template: cpp-lib1 parent e2ee456 commit 6164875Copy full SHA for 6164875
File tree
Expand file treeCollapse file tree
35 files changed
+1275
-280
lines changedFilter options
- .ado
- jobs
- templates
- change
- vnext
- PropertySheets/External
- templates
- cpp-app
- windows
- MyApp
- cpp-lib
- example
- windows
- MyLib
Expand file treeCollapse file tree
35 files changed
+1275
-280
lines changed.ado/jobs/cli-init-windows.yml
Copy file name to clipboardExpand all lines: .ado/jobs/cli-init-windows.yml+30Lines changed: 30 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
25 | 35 |
| |
26 | 36 |
| |
27 | 37 |
| |
| |||
44 | 54 |
| |
45 | 55 |
| |
46 | 56 |
| |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
47 | 77 |
| |
48 | 78 |
| |
49 | 79 |
| |
|
.ado/templates/react-native-init-windows.yml
Copy file name to clipboardExpand all lines: .ado/templates/react-native-init-windows.yml+55-28Lines changed: 55 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
| 43 | + | |
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
49 |
| - | |
| 48 | + | |
| 49 | + | |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 | 52 |
| |
58 | 53 |
| |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
| 54 | + | |
67 | 55 |
| |
68 | 56 |
| |
69 |
| - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
70 | 83 |
| |
71 | 84 |
| |
72 | 85 |
| |
73 | 86 |
| |
74 | 87 |
| |
75 |
| - | |
76 |
| - | |
77 | 88 |
| |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
85 | 104 |
| |
| 105 | + | |
| 106 | + | |
86 | 107 |
| |
87 | 108 |
| |
88 | 109 |
| |
| |||
95 | 116 |
| |
96 | 117 |
| |
97 | 118 |
| |
98 |
| - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
99 | 123 |
| |
100 | 124 |
| |
101 | 125 |
| |
| |||
105 | 129 |
| |
106 | 130 |
| |
107 | 131 |
| |
108 |
| - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
109 | 136 |
| |
110 | 137 |
| |
111 | 138 |
| |
|
change/react-native-windows-f2a1a001-7c49-48af-8a21-a5947fbec507.json
Copy file name to clipboard+7Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + |
vnext/PropertySheets/External/Microsoft.ReactNative.Composition.Common.props
Copy file name to clipboardExpand all lines: vnext/PropertySheets/External/Microsoft.ReactNative.Composition.Common.props+8Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 |
| |
20 | 28 |
|
vnext/PropertySheets/External/Microsoft.ReactNative.Composition.CppLib.props
Copy file name to clipboard+24Lines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + |
vnext/PropertySheets/External/Microsoft.ReactNative.Composition.CppLib.targets
Copy file name to clipboard+20Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + |
vnext/templates/cpp-app/metro.config.js
Copy file name to clipboardExpand all lines: vnext/templates/cpp-app/metro.config.js-2Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
52 |
| - | |
53 | 51 |
| |
54 | 52 |
| |
55 | 53 |
| |
|
vnext/templates/cpp-app/template.config.js
Copy file name to clipboardExpand all lines: vnext/templates/cpp-app/template.config.js+7-8Lines changed: 7 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
| 23 | + | |
29 | 24 |
| |
30 | 25 |
| |
31 | 26 |
| |
| |||
38 | 33 |
| |
39 | 34 |
| |
40 | 35 |
| |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
41 | 40 |
| |
42 | 41 |
| |
43 | 42 |
| |
| |||
50 | 49 |
| |
51 | 50 |
| |
52 | 51 |
| |
53 |
| - | |
| 52 | + | |
54 | 53 |
| |
55 | 54 |
| |
56 | 55 |
| |
| |||
61 | 60 |
| |
62 | 61 |
| |
63 | 62 |
| |
64 |
| - | |
| 63 | + | |
65 | 64 |
| |
66 | 65 |
| |
67 | 66 |
| |
|
vnext/templates/cpp-app/windows/ExperimentalFeatures.props
Copy file name to clipboardExpand all lines: vnext/templates/cpp-app/windows/ExperimentalFeatures.props+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
|
vnext/templates/cpp-app/windows/MyApp/AutolinkedNativeModules.g.cpp
Copy file name to clipboard+13Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + |
You can’t perform that action at this time.
0 commit comments