
You may need to add -force if you encounter EPERM issues due to a npm bug.Īdd React Native Prepare from the Build category and select the appropriate platform. Specify install as the Command, -no-optional under Advanced > Arguments to speed up the build, and set Advanced > Working Directory to the location of your package.json file if not in the repository root. and add the following tasks to your build definition:Īdd npm from the Package category.

You can use the Empty template.Ĭlick Add build step. Go to your VSTS or TFS project, click on the Build tab, and create a new build definition (the "+" icon).


It has been designed for use with React Native 0.19.0 and above. This extension targets a platform (React Native) that is rapidly evolving and therefore is currently in early preview.
