Skip to content

Commit ce5f1d4

Browse files
satya164okwasniewski
authored andcommitted
docs: add instructions to verify that app is running in new arch
1 parent e61d398 commit ce5f1d4

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

packages/create-react-native-library/templates/common/CONTRIBUTING.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,25 @@ By default, the example is configured to build with the old architecture. To run
5050
yarn example ios
5151
```
5252

53+
<% } -%>
54+
<% if (project.architecture === 'turbo' || project.architecture == 'mixed') { -%>
55+
To confirm that the app is running with the new architecture, you can check the Metro logs for a message like this:
56+
57+
```sh
58+
Running "<%- project.name -%>Example" with {"fabric":true,"initialProps":{"concurrentRoot":true},"rootTag":1}
59+
```
60+
61+
Note the `"fabric":true` and `"concurrentRoot":true` properties.
62+
5363
<% } -%>
5464
<% if (!project.native) { -%>
5565
To run the example app on Web:
5666

5767
```sh
5868
yarn example web
5969
```
60-
<% } -%>
6170

71+
<% } -%>
6272
Make sure your code passes TypeScript and ESLint. Run the following to verify:
6373

6474
```sh
@@ -77,10 +87,12 @@ Remember to add tests for your change if possible. Run the unit tests by:
7787
```sh
7888
yarn test
7989
```
90+
8091
<% if (project.native) { -%>
8192
To edit the Objective-C or Swift files, open `example/ios/<%- project.name -%>Example.xcworkspace` in XCode and find the source files at `Pods > Development Pods > <%- project.slug -%>`.
8293

8394
To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `<%- project.identifier -%>` under `Android`.
95+
8496
<% } -%>
8597
### Commit message convention
8698

0 commit comments

Comments
 (0)