-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Make status bar transparent on android #15656
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
Conversation
|
@eVoloshchak @bondydaa One of you needs to 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/VideosiOSScreen.Recording.2023-03-06.at.20.16.24.movAndroidvideo_2023-03-06_20-18-35.mp4 |
|
@janicduplessis, could you please upload screenshots/videos for all the platforms? They aren't affected by this change, but it's better to double-check and verify that they indeed aren't affected |
eVoloshchak
left a comment
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.
Tests well on a physical device with Android 12 and an emulator with Android 13
cc: @bondydaa
|
@eVoloshchak Thanks for testing it! I added the same screenshots on iOS for comparison and basic screenshot for other platforms. As you mentioned this only changes a |
|
✋ 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/bondydaa in version: 1.2.81-0 🚀
|
|
Reverted this PR. @janicduplessis we'll need a different method for this. While there are some remaining challenges, I think our best lead is the changes Rory has been working on which remove the StatusBar lib and programmatically fit the Android window. |
|
Yea I think the splash screen moving issue is because the status bar module executes too late from JS. I think we can run the same code that it uses from activity onCreate instead to avoid this issue. There was also a 2nd issue (visible on login screen) where the dimensions module from react native doesn’t return the right value with transparent status bar. To fix this we can use values from react-native-safe-area-context which works properly in that case. |
|
PR to reland this with fixes for the issues that were reported #15778 |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.2.81-1 🚀
|




Details
Make the status bar transparent on Android, using RN StatusBar api. No changes were needed in screens since we already handle transparent status bar for iOS.
Fixed Issues
$ #13001
PROPOSAL: GH_LINK_ISSUE(COMMENT)
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android