From b776af96c6ef94d6a527ca3e6c7a204c3969c4ed Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Mon, 8 Oct 2018 16:40:40 +0200 Subject: [PATCH] make iphone xs max owners little bit happier Signed-off-by: Andrey Shovkoplyas --- src/status_im/ios/platform.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/status_im/ios/platform.cljs b/src/status_im/ios/platform.cljs index 4075f67b46..8fadef27fe 100644 --- a/src/status_im/ios/platform.cljs +++ b/src/status_im/ios/platform.cljs @@ -12,14 +12,14 @@ :font-weight "bold"}}) ;; iPhone X dimensions -(def x-width 375) (def x-height 812) +(def xs-height 896) (defn iphone-x-dimensions? [] (let [{:keys [width height]} (-> (.-Dimensions rn-dependencies/react-native) (.get "window") (js->clj :keywordize-keys true))] - (and (= width x-width) (= height x-height)))) + (or (= height x-height) (= height xs-height)))) (def platform-specific {:fonts fonts