fix window height sub leak (#15878)

This commit is contained in:
Parvesh Monu 2023-05-11 19:57:37 +05:30 committed by GitHub
parent d714dc1590
commit 3c278ed06c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@
(defn store-screen-height
[evt]
(let [window-height (rf/sub [:dimensions/window-height])
(let [window-height (:height (rn/get-window))
height (or (oget evt "nativeEvent" "layout" "height") 0)
width (or (oget evt "nativeEvent" "layout" "width") 0)]
;; Layout height calculation