-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
chore: Update React Native to 0.73.2 #31558
chore: Update React Native to 0.73.2 #31558
Conversation
@jasperhuangg Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
All checks are failing. Please merge main and see if still fails |
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
1 similar comment
This comment was marked as outdated.
This comment was marked as outdated.
Is this known? |
Yes, locally they pass so maybe some problems with some CI caches. |
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a | ||
Turf: 13d1a92d969ca0311bbc26e8356cca178ce95da2 | ||
VisionCamera: 7d13aae043ffb38b224a0f725d1e23ca9c190fe7 | ||
Yoga: e64aa65de36c0832d04e8c7bd614396c77a80047 |
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.
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.
It passes on CI so should we care about it? I personally do not have changes in it so not sure what is the cause.
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.
No idea why is that, I've cleared npm cache, derived data, reinstalled node modules and pods, and it stays the same for me.
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
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.
Tests are passing and @situchan @shubham1206agra could not find any other issues, I think this would be great to merge and deploy to staging before the weekend if possible @roryabraham
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
I think this came from RN upgrade. Screen.Recording.2024-01-15.at.12.17.22.PM.mov@j-piasecki @WoLewicki can you please check? |
"@react-native-camera-roll/camera-roll": "5.4.0", | ||
"@react-native-clipboard/clipboard": "^1.12.1", | ||
"@react-native-community/geolocation": "^3.0.6", | ||
"@react-native-community/netinfo": "^9.3.10", | ||
"@react-native-community/netinfo": "11.1.0", |
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.
Confirmed this is the culprit. Not happen on 9.3.10
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.
Seems fixed in latest version (11.2.1)
react-native-netinfo/react-native-netinfo#706 is the fixing PR
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.
Should we submit a quick PR with the bump of version or do you want to do it?
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 you submit if you can? I will handle review
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.
Ok, on it now 🚀
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.
here it is: #34491
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.4.25-0 🚀
|
"onchange": "^7.1.0", | ||
"portfinder": "^1.0.28", | ||
"prettier": "^2.8.8", | ||
"pusher-js-mock": "^0.3.3", | ||
"react-native-clean-project": "^4.0.0-alpha4.0", | ||
"react-native-flipper": "https://gitpkg.now.sh/facebook/flipper/react-native/react-native-flipper?9cacc9b59402550eae866e0e81e5f0c2f8203e6b", |
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.
It seems the flipper plugin used for debugging was removed. There's also this warning during development
Perhaps this was a mistake because Flipper is still being used in the project
Could you please clarify if the removal of the Flipper plugin was intentional and, if so, provide the reasoning behind this decision?
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.
This was dicussed here, not a blocker, Flipper will be removed https://expensify.slack.com/archives/C05LX9D6E07/p1705066075250729?thread_ts=1704921323.369379&cid=C05LX9D6E07
"react-native-pager-view": "^6.2.0", | ||
"react-native-pdf": "^6.7.3", | ||
"react-native-pager-view": "6.2.2", | ||
"react-native-pdf": "^6.7.4", |
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.
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.
Weird. Seems like merge conflict.
Gitlens also showing old PR
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.
Then revert it again to fix this 😄
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.25-10 🚀
|
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP. | ||
ndkVersion = "23.1.7779620" | ||
compileSdkVersion = 34 | ||
targetSdkVersion = 34 |
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.
Bumping targetSdkVersion
to 34 caused crash on android 14 devices.
The root cause was in react-native-blob-utils package, which we had to bump version to fix it.
Details
PR bumping RN version of the App to 0.73.2.
Some types have changed in the RN core and/or Android SDK 34, so we had to add patches for libraries to make them compile on Android (all of those are related to nullability on Kotlin).
Changed patches:
@onfido/react-native-sdk
- due to upgraded AGP, publishing components are no longer created automatically and need to be defined manually (see https://developer.android.com/build/releases/past-releases/agp-7-1-0-release-notes#disable-component-creation), upstream PR: Addpublishing
block inbuild.gradle
onfido/react-native-sdk#157Added patches:
react-native-vision-camera
due to changed nullability type in SDK 34 the library wouldn't compile, there's already a motion to use Vision Camera 3, where this problem should be fixedRemoved patches:
setState
fromKeyboardAvoidingView
- those changes are included in RN 0.73 - Don't use setState for disabled KeyboardAvoidingView to avoid re-renders facebook/react-native#38074Important notes:
SelectionList
perf test was modified due to a change inVirtualList
implementation (Fix virtualization logic with horizontal RTL lists facebook/react-native#38529) it's also necessary for now to invokeonContentSizeChange
event as it's no longer handled inonScroll
handler. It's possible that migrating to theuserEvent
API for events will make it redundant in the future (fireEvent.scroll
doesn't update the FlatList's render window on React Native 0.73 callstack/react-native-testing-library#1540)nonTransitiveRClass
, which caused build issues withreact-native-screens
and@rnmapbox/maps
as they useR
values from outside the packagesnpx expo install --fix
was run to make sure relevant dependencies are compatible with Expo SDK 50Fixed Issues
$ #31381
$ #22155
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop