-
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
[Performance] BottomTabBar: Changed to initializer function #53201
[Performance] BottomTabBar: Changed to initializer function #53201
Conversation
@eVoloshchak 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] |
@mountiny PR created |
@gedu can you please add recordings from all platforms? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-28.at.16.52.49.movAndroid: mWeb ChromeScreen.Recording.2024-11-28.at.16.45.49.moviOS: NativeScreen.Recording.2024-11-28.at.16.42.34.moviOS: mWeb SafariScreen.Recording.2024-11-28.at.16.44.53.movMacOS: Chrome / SafariScreen.Recording.2024-11-28.at.16.41.57.movMacOS: DesktopScreen.Recording.2024-11-28.at.16.47.43.mov |
@@ -74,7 +74,7 @@ function BottomTabBar({selectedTab}: BottomTabBarProps) { | |||
const [policies] = useOnyx(ONYXKEYS.COLLECTION.POLICY); | |||
const [reportActions] = useOnyx(ONYXKEYS.COLLECTION.REPORT_ACTIONS); | |||
const [transactionViolations] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS); | |||
const [chatTabBrickRoad, setChatTabBrickRoad] = useState<BrickRoad>( | |||
const [chatTabBrickRoad, setChatTabBrickRoad] = useState<BrickRoad>(() => |
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.
Do we need the same change implemented in createCustomPlatformStackBottomTabNavigator/BottomTabBar.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.
Yes, good catch
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.69-1 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.0.69-4 🚀
|
Explanation of Change
Fixed Issues
$ #53162
PROPOSAL: -
Tests
Offline tests
QA Steps
Same as tests
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
Android: Native
bottomTabBar_android.mp4
Android: mWeb Chrome
bottomTabBar_androidWeb.mp4
iOS: Native
bottomTabBar_ios.mp4
iOS: mWeb Safari
bottomTabBar_iosSafari.mp4
MacOS: Chrome / Safari
bottomTabBar_safari.mp4
bottomTabBar_chrome.mp4
MacOS: Desktop
bottomTabBar_desktop.mp4