Skip to content

Repository Contents

Chiara Mooney edited this page Sep 22, 2021 · 2 revisions

./ Directory

./ado - This directory contains the source for React Native Windows' pipelines. React Native Windows pipelines run in Azure DevOps (ADO). Our pipelines run during Pull Requests and for daily builds of the platform. In here you will find .yml files.

./github - This directory contains source related to the Github repository itself such as issue templates, licenses, etc.

./vscode - This directory contains source that specifies VSCode settings and extensions that should be used when working on React Native Windows. Through this source, when the project is opened in VSCode, VSCode will automatically prompt the developer to install and enable the extensions if they haven't already.

./docs - This directory contains some documentation for React Native Windows. Note other documentation locations include the Wiki tab on the RNW repo and the RNW website.

./packages - This directory contains other packages and apps that are not the react-native-windows package.

./vnext - This directory contains the source for the react-native-windows package.

./package.json - All package.json files contain information about the package they live in. This information includes name, version, scripts, dependencies, workspaces, etc. Packages.json files are used by yarn and npm to determine what content in the package needs to be published, what dependencies need to be downloaded, etc.

./yarn.lock - This file contains information from yarn as to what specific packages were downloaded when yarn was run. The version information here will be more specific that the version information found in package.json.

./vnext Directory

./vnext/Microsoft.ReactNative - This directory holds the native Windows code for React Native Windows. In here you will find files written in C++. This directory contains the code for the native side of core components and modules.

./vnext/src - This directory holds the Javascript/Typescript code for React Native Windows. To build the RNW platform some JS/TS code is used directly from React Native core and some is modified by us. The files in this folder are modified versions of files on the JS/TS side of React Native.

./vnext/template - This directory holds the templates for React Native Windows. Source from these files is used to specify the contents of a freshly created RNW app or module/component from the CLI.

./vnext/Microsoft.ReactNative.sln - This file is the solution file for the Microsoft.ReactNative project. Open this file in VS to build React Native Windows.

Information on other projects in ./vnext can be found here: project-structure.md

./packages Directory

./packages/@react-native-windows - This directory contains a package which has source for RNW CLI commands, RN Tester, codegen, and more.

./packages/e2e-test-app - This directory contains the E2E Tests for React Native Windows and the test app used to run the tests on.

./packages/integration-test-app - This directory contains the app used for React Native Windows Integration Tests. The Integration Tests themselves can be found in ./vnext/src/IntegrationTests.

./packages/playground - This directory contains the playground, playground-32, and playground-win32 (packaged) sample apps. All three contain similar content and load files found in ./playground/Samples. These are our primary apps within the repo for viewing RNW samples and reproducing bugs. The playground app is a classic RNW app. The playground-win32 app is a sample showing RNW with XAML Islands.

./packages/react-native-platform-override - This directory contains a package that is used during our integrations from React Native to automate large chunks of the merging process.

./packages/react-native-windows-init - This directory contains a package that is used to create React Native Windows apps and modules via the CLI.