Skip to content

Commit

Permalink
Update Native Module Setup documentation for 0.76+ (#993)
Browse files Browse the repository at this point in the history
## Description

This PR updates the Native Module setup doc with the steps for using the
new `cpp-lib` template.

### Why
To better reflect the current setup process for setting up a new RNW
native module.

## Screenshots
N/A

###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/993)
  • Loading branch information
jonthysell authored Dec 3, 2024
1 parent fd83101 commit 6c66d3e
Show file tree
Hide file tree
Showing 6 changed files with 288 additions and 97 deletions.
1 change: 1 addition & 0 deletions .spelling
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Node.js
non-ABI-safe
non-UI
npm
npmjs.com
NuGet
NuGets
nvs
Expand Down
2 changes: 1 addition & 1 deletion docs/native-modules-autolinking.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The information provided by `config` is described in [React Native Config Schema
Autolinking is performed automatically as a part of the [run-windows command](run-windows-cli.md):

1. At build time, autolinking is performed first, before `msbuild.exe` is invoked and the build actually started. It uses the information provided by `config` to both generate and modify certain native files consumed by your app project.
1. The `AutolinkedNativeModules.g.targets` file contains the necessary references to the dependency projects that must be built.
1. The `AutolinkedNativeModules.g.props` and `AutolinkedNativeModules.g.targets` file contains the necessary references to the dependency projects that must be built.
> Your app's solution file may also be modified to ensure the dependency projects will be built.
1. The `AutolinkedNativeModules.g.(cpp|cs)` files contain a `RegisterAutolinkedNativeModulePackages` method which registers all of the specified `IReactPackageProvider`s from the dependencies.
Expand Down
Loading

0 comments on commit 6c66d3e

Please sign in to comment.