mirror of
https://github.com/status-im/status-react.git
synced 2025-02-18 13:58:24 +00:00
make iphone xs max owners little bit happier
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
84151ea996
commit
b776af96c6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user