-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RNMobile] Upgrade React Native to version 0.71.15 #57667
Conversation
The modifications were automatically made when installing pods.
5684fe1
to
11899fc
Compare
Size Change: +175 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
I updated the |
Hi, I noticed you're having issues with upgrading React Native. I've managed to upgrade my app to 0.72.3 with some effort. I posted a tweet here about it, and happy to share the git diff of my changes if that helps (I can't post it here as it's a paid product but I'm happy to walk you through the code on a call at no cost) |
Thank you, @paulmbw, for sharing this valuable information and for your willingness to assist 🙇. The integration of React Native into the Gutenberg project exhibits a slightly different and more complex structure compared to a typical React Native app. Throughout our previous upgrades, we have encountered various blockers, and it is likely that the issue mentioned in this comment is related to the unique integration of React Native. My purpose with this PR was mainly to test the waters and check if we could quickly apply the patch version. However, as shared above, it appears that this is not the case. Hence, we've decided to temporarily halt our efforts and plan to revisit this matter upon upgrading to version 0.72.3. |
The workaround solves the issue related to redefining `clockid_t` in the pod `RCT-Folly`.
I investigated the issue further and managed to apply a workaround in b72f56a. More details can be found in the PR's description. |
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.
These changes have been introduced in React Native version 0.71.14 as part of an Xcode 15 patch.
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.
LGTM! I've smoke tested the editor on both platforms, I've also checked that the accessibility patch works as expected 🚀
Heads up that I've just added the following warning to the PR's description: Warning Usually, in React Native upgrades we also update the version in |
# Conflicts: # packages/react-native-editor/CHANGELOG.md # packages/react-native-editor/ios/Podfile.lock
# Conflicts: # package-lock.json # packages/react-native-editor/ios/Podfile.lock
This update was already made in 66fa7bc but we to apply it again after updating with `trunk`.
Related PRs:
What?
Upgrade React Native to version 0.71.15.
Why?
How?
Podfile.lock
by runningnpm run native preios
.react-native
patch file.Warning
Usually, in React Native upgrades we also update the version in
react-native-libraries-publisher
to generate new Android binaries. However, since this upgrade is for a patch version, we assume all third-party libraries support any patch version of0.71
. For this reason, this step has been skipped.Address build failure related to
RCT-Folly
This is related to the issue shared in #57667 (comment). I investigated the problem further and found a workaround.
For some reason,
RCT-Folly
redefinesclockid_t
, however, this seems not needed in newer iOS SDK versions. This was been fixed inRCT-Folly
version (v2022.08.29.00
- facebook/folly@4a2410f) but current React Native version points to an older version (2021.07.22.00
- reference). The version has been bumped in React Native version 0.73.0 (2022.05.16.00
- reference), so we'd need to keep the patch until we upgrade.Regarding the patch, this is the part we need from
react_native_pods
script (reference) that removes the condition related to checking the minimum version required (reference):Testing Instructions
Note
It's recommended to use the following installable builds for testing:
Nothing in particular, it should be enough by smoke testing the editor.
Testing Instructions for Keyboard
N/A
Screenshots or screencast
N/A