Back to React Native Windows

react-native-windows-init

packages/react-native-windows-init/README.md

0.61-stable2.5 KB
Original Source

react-native-windows-init

CLI to bootstrap the addition of the Windows platform to react-native projects.

Usage

Run this from an existing react-native project, to install react-native-windows and generate initial project files for windows.

Example usage

npx react-native-windows-init --language cpp

Options:

optiondescriptiontype
--helpShow help[boolean]
--versionThe version of react-native-windows to use.[string]
--namespaceThe native project namespace.[string]
--verboseEnables logging.[boolean]
--languageWhich language the app is written in.[string] [choices: "cs", "cpp"] [default: "cpp"]
--overwriteOverwrite any existing files without prompting[boolean]
--useWinUI3Targets WinUI 3 (through the Windows App SDK) instead of UWP XAML.[boolean]
--no-telemetryDisables sending telemetry that allows analysis of failures of the react-native-windows CLI[boolean]

Data Collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

This data collection notice only applies to the process of creating a new React Native for Windows app with the CLI.