Skip to content

Commit d7edcfa

Browse files
committed
Add docs
1 parent cd7685c commit d7edcfa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/Releases.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,13 @@ We do this so that our first release will have a proper patch version of 0, as s
215215
```
216216

217217
</details>
218+
219+
## Hermes Compatibility (0.74 and above)
220+
221+
*Note: This is only applicable if Hermes is enabled (I.E: `USE_HERMES=1 pod install`.*
222+
223+
React Native macOS updates the patch version automatically for every change that comes through, so our patch number can differ wildly from that of vanilla React Native.
224+
225+
To ensure the best possible Hermes compatibility, we specify a peer dependency in React Native macOS's `package.json` indicating which version of upstream React Native best corresponds with our own version. For example, our 0.74.34 corresponds to upstream's 0.74.7, and we reflect this connection in [this particular version of `package.json`](https://github.com/microsoft/react-native-macos/blob/2db3abeb5d4318fee3abdff4a4d1a68967223135/packages/react-native/package.json#L103).
226+
227+
For stable branches, the existence of this peer dependency is enforced as part of our CIs via [Yarn Constraints](https://yarnpkg.com/features/constraints).

0 commit comments

Comments
 (0)