Skip to content

Conversation

@jonthysell
Copy link
Contributor

@jonthysell jonthysell commented Sep 23, 2023

Description

This PR adds the starting template for a purely "new architecture" RNW app, based on our current progress in implementing turbo modules and fabric. It also makes some supporting changes such as making sure run-windows still works and adding new non-UWP external property sheets.

Type of Change

  • New feature (non-breaking change which adds functionality)

Why

This gives us the ability to start experimenting with fabric apps outside of the specialized versions in our repo.

Closes #11908
Closes #12171

What

Created a new generalized app template based on the e2e-test-app-fabric test app and the first minimal sample RNW fabric app here: https://github.com/chiaramooney/sample-fabric/.

This template can be used to initialize a new RNW app using all new architecture features, on an existing react-native project.

Once checked in, folks should be able to try this out with some variant of:

npx react-native@latest init testlocal --version 0.73.0-nightly-20230811-68c7cfe62
cd testlocal
yarn add react-native-windows@canary
yarn react-native init-windows --template cpp-app --overwrite --logging
yarn react-native run-windows --no-autolink --logging

Metro should start as well as launch the packaged version of your app.

Screenshots

image

Testing

I created a new project (using my linked local RNW repo) using the following:

npx react-native@latest init testlocal --version 0.73.0-nightly-20230811-68c7cfe62
cd testlocal
yarn add react-native-windows@canary && yarn link react-native-windows
yarn react-native init-windows --template cpp-app --overwrite --logging
yarn react-native run-windows --no-autolink --logging

Changelog

Should this change be included in the release notes: no

Microsoft Reviewers: Open in CodeFlow

This PR adds the starting template for a purely "new architecture" RNW
app, based on our current progress in implementing turbo modules and
fabric.
@jonthysell jonthysell changed the title [WIP] Add new architecture cpp-app template for init-windows Add new architecture cpp-app template for init-windows Sep 25, 2023
@jonthysell jonthysell marked this pull request as ready for review September 25, 2023 19:56
@jonthysell jonthysell requested review from a team as code owners September 25, 2023 19:56
@jonthysell jonthysell merged commit c7282e5 into microsoft:main Sep 25, 2023
@jonthysell jonthysell deleted the fabrictemplate branch September 25, 2023 21:29
@jonthysell jonthysell added the New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: App Template Area: CLI Area: Fabric Support Facebook Fabric New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Create a "new-app" template, defaulting to: C++, Fabric, Hermes, NuGet-based, Win32 app Enable creation of a new Fabric app from template via the CLI

4 participants