-
Notifications
You must be signed in to change notification settings - Fork 148
ci(0.78): Add docs and CI checks for RN peer dependency #2557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,3 +215,13 @@ We do this so that our first release will have a proper patch version of 0, as s | |
``` | ||
|
||
</details> | ||
|
||
## Hermes Compatibility (0.74 and above) | ||
|
||
*Note: This is only applicable if Hermes is enabled via the `USE_HERMES=1` environment variable when running `pod install`.* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Speaking of.. can we find what version of RN set Hermes as the default and align to that now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did this in #2538 when I added a peer dependency to package.json. Or are you referring to something else? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm referring to setting Hermes as the default so that we don't need to do |
||
|
||
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. | ||
|
||
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). | ||
|
||
For stable branches, the existence of this peer dependency is enforced as part of our CIs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move to GitHub Actions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping on this one again