-
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
Clean up Reanimated warnings #49587
Clean up Reanimated warnings #49587
Conversation
@@ -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 |
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.
@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] |
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 |
@BartoszGrajdek the warning still shows in the Expense -> Distance request Screen.Recording.2024-09-25.at.23.36.32.mov |
@hoangzinh have you reinstalled the |
oh you're right, after reinstall node_modules, it works properly |
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
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.0.42-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.42-3 🚀
|
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 onmain
branchApp/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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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.mov
Android: mWeb Chrome
iOS: Native
ios.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov