-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Make status bar transparent on android #15656
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 |
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android