-
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
Fix: Status bar style not update #34637
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-native-2024-01-25_15.27.12.mp4Android: mWeb Chromeandroid-chrome-2024-01-25_15.33.04.mp4iOS: Nativeios-native-2024-01-25_15.08.14.mp4iOS: mWeb Safariios-safari-2024-01-25_15.14.15.mp4MacOS: Chrome / Safaridesktop-chrome-2024-01-25_15.35.46.mp4MacOS: Desktopdesktop-app-2024-01-25_15.38.51.mp4 |
Testing pretty well! One thing I'm getting on Android native is that the status bar text changes colour on the login screen (after entering the magic code), before the home screen loads. This causes the status bar to temporarily "disappear". Any way to handle that? out.mp4 |
I think that's because Android dev build is slow, the route and theme already change but component is not rendered yet. We do not have this issue on iOS. I think we won't have it in Android production build. I also tested and found no solution for that. |
@tienifr Gotcha! It's still a big improvement anyway so I think we're good. |
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!
Looks like a couple of changes will overlap with #34409 but we should be good to move forward here. |
updateStatusBarStyle(); | ||
|
||
// Add navigation state listeners to update the status bar every time the route changes | ||
// We have to pass a count as the listener id, because "react-navigation" somehow doesn't remove listeners properly | ||
const listenerId = ++listenerCount.current; |
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.
as part of this PR, would you mind updating the capitalization to listenerID
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.
Updated!
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, minor variable name comment unrelated to your code if you're up for 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.
LGTM, thanks!
@tienifr you may need to merge main for the performance tests |
The perf-test is failing due to changes in this PR. I'm investigating that. |
@tienifr any updates on the performance tests |
@tienifr would you mind posting a quick update on this PR? |
Perf-test failure is resolved. The TS check is already on |
@grgia TS failure is fixed. We're good to go. |
Merged Screen.Recording.2024-02-27.at.19.52.29-compressed.movScreen.Recording.2024-02-27.at.19.51.20-compressed.mov |
✋ 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/grgia in version: 1.4.45-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.45-6 🚀
|
Details
This PR fixes the issue of status bar not get updated.
Fixed Issues
$ #33674
PROPOSAL: #33674 (comment)
Tests
======
Offline tests
NA
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
Screen.Recording.2024-01-17.at.17.01.40-compressed.mov
Android: mWeb Chrome
Screen.Recording.2024-01-17.at.17.12.22-compressed.mov
iOS: Native
Screen.Recording.2024-01-17.at.16.56.25-compressed.mov
iOS: mWeb Safari
Screen.Recording.2024-01-17.at.16.51.44-compressed.mov