-
Notifications
You must be signed in to change notification settings - Fork 987
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 #2719] App does not fit on iPhone X screen #2856
Conversation
f4bdf3f
to
f555ba5
Compare
3a7e350
to
ff93b57
Compare
Hey, @foopang thanks for a contribution. Could you, please double check tab bar and top bar heights? Use my design as a reference. |
Hi @denis-sharypin please see if this looks good now. |
src/status_im/ui/screens/views.cljs
Outdated
:choose-recipient) common-styles/color-blue4 | ||
(:accounts :login) common-styles/color-blue2 | ||
:transparent) | ||
:margin-top -20})) |
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.
Seems that the new safe-area-view
RN component doesn't allow us to set the padding size for top and bottom, so I come up with this kinda odd :margin-top -20
to do the trick.
@foopang Thanks! All good from a design side |
@foopang Please, add also a launch screen |
f54adfd
to
ee2850e
Compare
@denis-sharypin the launch screen has been updated! |
@foopang Sorry, got dropped out of our pipeline. Moving to REVIEW now as design seems to have been sorted. Thanks! |
src/status_im/ui/screens/views.cljs
Outdated
[(if android? menu-context view) common-styles/flex | ||
[view common-styles/flex | ||
[(if iphone-x? safe-area-view view) (merge common-styles/flex |
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.
This is a bit gnarly, can we break this out in a fn or so?
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.
Minor comments, in general looks good
src/status_im/ui/screens/views.cljs
Outdated
[status-im.utils.platform :refer [android?]] | ||
[status-im.ui.components.react :refer [view modal]] | ||
[status-im.utils.platform :refer [android? ios?]] | ||
[status-im.ui.components.react :refer [view safe-area-view modal dimensions]] |
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.
Can we turn these into react/foo etc? Generally preferable (think these are leftovers)
@@ -36,6 +36,7 @@ | |||
(def geolocation (when (exists? js/window) | |||
js/navigator.geolocation.)) | |||
(def view (get-class "View")) | |||
(def safe-area-view (get-class "SafeAreaView")) |
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.
Is this always available? What happens if it is not?
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, it is always available. React Native ships with SafeAreaView
as of version 0.50.
^ @jeluard @flexsurfer please review |
f78716d
to
1f4da3a
Compare
@Serhy Sorry for bringing in so many issues in this PR. Hope all is fixed now! Please have a look. |
Thanks a lot, @foopang ! Could you please apply on 'Wallet' -> top-right button -> 'Manage Assets' -> 'Assets' screen the blue background to device status bar and fix conflicts? |
c619016
to
ac6ee6f
Compare
@Serhy Thanks for checking! All layout issues should have been fixed now. @flexsurfer @jeluard something to note about the iPhone X screen issues, I did some hacks to workaround. https://github.com/status-im/status-react/pull/2856/files#diff-d8aa2157cacb46da51afecaef8554e32R294 The bottom spacing is gone when in modal view. So I put an invisible https://github.com/status-im/status-react/pull/2856/files#diff-93d9c10db297821b5145f29bdbb7b6bcR189 The transaction sent modal won't show but will block the layout from being navigated away when closing the transaction modal and immediately opening a new modal, so adding a delay here to fix. https://github.com/status-im/status-react/pull/2856/files#diff-dc0057ed633d7dc9f584171ce43774d5R28 The top and bottom spacing has to be reduced from the height in order to get the screen viewport height of iPhone X so that "Scan QR code" screen can show properly. https://github.com/status-im/status-react/pull/2856/files#diff-d8aa2157cacb46da51afecaef8554e32R275 The top bar and the bottom bar can't be two different background colors. To work around that I added a view with a different background color and stuck to the bottom so that it can show different background colors on Wallet screens.
|
Builds Android: https://i.diawi.com/jH87hH and iOS: https://i.diawi.com/ND1hGn has been tested on iPhoneX and Android 7.0 (Samsung J7). It looks good, no issues and app fits on iPhoneX screen. @foopang great job! Thank you a lot for the efforts in this PR! Ready for merge! |
Signed-off-by: Andrey Shovkoplyas <[email protected]>
ac6ee6f
to
eba8df6
Compare
Thank you @foopang! This has been a much requested feature and will be a fantastic enhancement to Status. |
fixes #2719
I guess we will need another splash image for iPhone X portrait (1125px x 2436px) 🙂
status: ready