Clean up Reanimated warnings#49587
Merged
roryabraham merged 1 commit intoExpensify:mainfrom Sep 28, 2024
Merged
Conversation
BartoszGrajdek
commented
Sep 23, 2024
| @@ -0,0 +1,94 @@ | |||
| diff --git a/node_modules/react-native-draggable-flatlist/src/components/DraggableFlatList.tsx b/node_modules/react-native-draggable-flatlist/src/components/DraggableFlatList.tsx | |||
Contributor
Author
|
@hoangzinh 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] |
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-26.at.21.54.48.android.movAndroid: mWeb ChromeScreen.Recording.2024-09-26.at.21.57.46.android.chrome.moviOS: NativeScreen.Recording.2024-09-26.at.22.02.17.ios.moviOS: mWeb SafariScreen.Recording.2024-09-26.at.22.00.21.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2024-09-25.at.22.58.37.web.movMacOS: DesktopScreen.Recording.2024-09-25.at.23.05.33.desktop.mov |
Contributor
|
@BartoszGrajdek the warning still shows in the Expense -> Distance request Screen.Recording.2024-09-25.at.23.36.32.mov |
Contributor
Author
|
@hoangzinh have you reinstalled the |
Contributor
|
oh you're right, after reinstall node_modules, it works properly |
roryabraham
approved these changes
Sep 28, 2024
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
49 tasks
Contributor
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.0.42-0 🚀
|
Contributor
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.42-3 🚀
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
Somewhere between react-native-reanimated 3.8 and 3.13 a new dev warning was added to make worklet closures more strict and prevent common developer errors.
The warning mentioned earlier has been disabled in the following pull request: #48330. This action was taken to address these notifications systematically and later reinstate them. The main focus of this PR is to reactivate the reanimated warning while fixing any existing errors.
Upstream PR for patch: computerjazz/react-native-draggable-flatlist#551
Fixed Issues
$ #48361
Tests
Important
This warning is disabled currently on
main, so if you want to compare anything with the latest changes you first need to remove this line onmainbranchApp/src/App.tsx
Lines 53 to 55 in bbc0919
The goal is to make sure that the warning [Reanimated] Tried to modify key
current... doesn't happen anywhere in the app.Though we don't have specific testing steps, it's best to thoroughly check the entire app (which I've already done). Pay particular attention to essential functions like:
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
iOS: Native
ios.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov