-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
#2243 optimizing for iphone x #2260
Conversation
can someone test this on android to make sure it still works? |
will do |
Codecov Report
@@ Coverage Diff @@
## master #2260 +/- ##
==========================================
- Coverage 22.16% 22.15% -0.01%
==========================================
Files 268 268
Lines 5883 5885 +2
Branches 716 720 +4
==========================================
Hits 1304 1304
+ Misses 4028 4007 -21
- Partials 551 574 +23
Continue to review full report at Codecov.
|
Oddly enough the status bar is unhideable now (in |
Okay, looks like Android status bar still needs a bit of height to it. Let me add that. |
Ideally, the status bar should automatically hide like it does on master — otherwise we have a regression gere, I think |
The implementation is a bit more complicated than that. I have no way of reliably detecting whether it's an iPhone X or not. I have to either use Expo's API to support CRNA or something like Instead I just used There's a new API I'm gonna experiment with this and see if it works for us: https://www.npmjs.com/package/react-native-iphone-x-helper |
Codecov Report
@@ Coverage Diff @@
## master #2260 +/- ##
==========================================
- Coverage 22.16% 22.13% -0.04%
==========================================
Files 268 268
Lines 5883 5892 +9
Branches 697 704 +7
==========================================
Hits 1304 1304
+ Misses 4073 4068 -5
- Partials 506 520 +14
Continue to review full report at Codecov.
|
505a77e
to
59bb39a
Compare
@Hypnosphi can I request another test from you? I think this should solve all of the problems. There's some minor style improvements in here too. |
The status bar is hidden again, thanks! Will also test in emulator to check if #2102 is fixed |
I failed to manage to launch an emulator =( Let's just merge this, but not close #2102 until the author confirms that it works |
Issue:
fix - #2243 on iPhone X, menu button and header is partially hidden
What I did
How to test
Is this testable with jest or storyshots?
yes
Does this need a new example in the kitchen sink apps?
no
Does this need an update to the documentation?
no
If your answer is yes to any of these, please make sure to include it in your PR.