Skip to content

Commit 75f5e7c

Browse files
authored
Update native module doc links in cpp-lib template (#14704)
## Description As we are creating new documentation for implementing native modules, this PR updates the links used in the `cpp-lib` template. ### Type of Change - Bug fix (non-breaking change which fixes an issue) ### Why The old docs may eventually retire and therefore break the links. ### What See above. ## Screenshots N/A ## Testing N/A ## Changelog Should this change be included in the release notes: _yes_ Update native module doc links in cpp-lib template
1 parent 05a6715 commit 75f5e7c

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Update native module doc links in cpp-lib template",
4+
"packageName": "react-native-windows",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

vnext/templates/cpp-lib/windows/MyLib/MyLib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace winrt::{{ namespaceCpp }}
66
{
77

8-
// See https://microsoft.github.io/react-native-windows/docs/native-modules for details on writing native modules
8+
// See https://microsoft.github.io/react-native-windows/docs/native-platform for help writing native modules
99

1010
void {{ pascalName }}::Initialize(React::ReactContext const &reactContext) noexcept {
1111
m_context = reactContext;

vnext/templates/cpp-lib/windows/MyLib/MyLib.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
namespace winrt::{{ namespaceCpp }}
1414
{
1515

16+
// See https://microsoft.github.io/react-native-windows/docs/native-platform for help writing native modules
17+
1618
REACT_MODULE({{ pascalName }})
1719
struct {{ pascalName }}
1820
{

0 commit comments

Comments
 (0)