You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+22-8Lines changed: 22 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,14 +44,6 @@ To run the example app on iOS:
44
44
yarn example ios
45
45
```
46
46
47
-
To confirm that the app is running with the new architecture, you can check the Metro logs for a message like this:
48
-
49
-
```sh
50
-
Running "CssExample" with {"fabric":true,"initialProps":{"concurrentRoot":true},"rootTag":1}
51
-
```
52
-
53
-
Note the `"fabric":true` and `"concurrentRoot":true` properties.
54
-
55
47
To run the example app on Web:
56
48
57
49
```sh
@@ -71,12 +63,34 @@ To fix formatting errors, run the following:
71
63
yarn lint --fix
72
64
```
73
65
66
+
### Testing
67
+
74
68
Remember to add tests for your change if possible. Run the unit tests by:
75
69
76
70
```sh
77
71
yarn test
78
72
```
79
73
74
+
### Debugging
75
+
76
+
Run the example via the command line with the `debug` script to enable debugging:
77
+
78
+
```sh
79
+
yarn example debug
80
+
```
81
+
82
+
This will print parsed CSS and style objects to the console, which can help you understand how the library processes CSS files.
83
+
84
+
### Commands
85
+
86
+
The `yarn example` command is a shortcut for running commands in the example app. You can run any command that is available in the example app's `package.json` by prefixing it with `yarn example`.
87
+
88
+
You can also run Expo commands directly from the root directory by using the `yarn example expo` command. For example, to run the Expo prebuild, you can use:
89
+
90
+
```sh
91
+
yarn example expo prebuild
92
+
```
93
+
80
94
### Commit message convention
81
95
82
96
We follow the [conventional commits specification](https://www.conventionalcommits.org/en) for our commit messages:
0 commit comments