
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
rnpm-plugin-windows
Advanced tools
To bootstrap the creation of Windows projects for React Native, we've published rnpm-plugin-windows
. The purpose of this plugin is to provide project init functionality comparable to react-native init
and react-native android
, and to allow users to build and run React Windows applications from the command line.
To start, make sure you have the react-native CLI installed globally.
npm install -g react-native-cli
Once the CLI is installed, install rnpm-plugin-windows and initialize your project. Note: if you have Yarn installed, the react-native-cli will prefer to use that instead of npm, so use yarn to install rnpm-plugin-windows
.
npm install --save-dev rnpm-plugin-windows
react-native windows
The windows
command will do the following:
react-native-windows
from NPMpackage.json
react-native windows [name] [--namespace <namespace>] [--windowsVersion <version>]
The windows
command takes an optional command line argument.
name
- The name of the project, which will be used for both file names and the name of the component that is registered in the React Native AppRegistry. Default value is the name given in the root-level package.json
.The windows
command accepts two optional flags.
--namepace
- The namespace that will be used in the generated native C# code. Default value is name
.--windowsVersion
- The version of react-native-windows
that will be used. Default value is matches the major and minor version of react-native
if installed, otherwise the latest version.For versions of react-native prior to 0.31.0, you'll need to use the rnpm global CLI to run the windows
command. Since the RNPM plugin syntax for the react-native CLI is not backward compatibile with rnpm, you'll need to use an older version of rnpm-plugin-windows
:
npm install --save-dev rnpm-plugin-windows@0.1.*
Once react-native-windows
is installed in your project, an additional RNPM plugin for running Windows apps is exposed to the react-native-cli
. To deploy your app to Desktop, execute:
react-native run-windows
For more information on the kinds of options and flags available for deploying to devices and emulators, use the --help
flag to get the command usage information.
FAQs
rnpm plugin that generates a Windows template project
The npm package rnpm-plugin-windows receives a total of 1,535 weekly downloads. As such, rnpm-plugin-windows popularity was classified as popular.
We found that rnpm-plugin-windows demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.