-
Notifications
You must be signed in to change notification settings - Fork 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
fix metro config and patch draggable flat list #54245
fix metro config and patch draggable flat list #54245
Conversation
metro.config.js
Outdated
@@ -26,4 +27,4 @@ const config = { | |||
}, | |||
}; | |||
|
|||
module.exports = mergeConfig(defaultConfig, expoConfig, config); | |||
module.exports = wrapWithReanimatedMetroConfig(mergeConfig(defaultConfig, expoConfig, config)); |
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.
Can you link Reanimated docs that suggest doing this? @sumo-slonik
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.
of course:
https://docs.swmansion.com/react-native-reanimated/docs/debugging/accurate-call-stacks/
I will also add to the description of PR
e0ef0da
to
c1861b6
Compare
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.
Purfect 🥇
@shubham1206agra 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: 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.
Thanks!
✋ 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/mountiny in version: 9.0.78-0 🚀
|
@sumo-slonik @mountiny we can't check the console waring in android |
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.78-0 🚀
|
2 similar comments
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.78-0 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.78-0 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.78-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.78-0 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.78-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.78-6 🚀
|
Explanation of Change
Fixes a patch to the draggable flat list library, so that there is no re-initialization of variables that caused warnings on the console.
In addition, I added a metro wrapper in the configurations that will make it easier to find the cause of similar errors in the future.
https://docs.swmansion.com/react-native-reanimated/docs/debugging/accurate-call-stacks/
Fixed Issues
$ #52920
PROPOSAL:
#52920 (comment)
Tests
(Test on android native)
Offline tests
Are not needed
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
Only recording from android is needed
Android: Native
android.native.mp4