mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-14 10:46:21 +00:00
fix window height sub leak (#15878)
This commit is contained in:
parent
d714dc1590
commit
3c278ed06c
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
(defn store-screen-height
|
(defn store-screen-height
|
||||||
[evt]
|
[evt]
|
||||||
(let [window-height (rf/sub [:dimensions/window-height])
|
(let [window-height (:height (rn/get-window))
|
||||||
height (or (oget evt "nativeEvent" "layout" "height") 0)
|
height (or (oget evt "nativeEvent" "layout" "height") 0)
|
||||||
width (or (oget evt "nativeEvent" "layout" "width") 0)]
|
width (or (oget evt "nativeEvent" "layout" "width") 0)]
|
||||||
;; Layout height calculation
|
;; Layout height calculation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user