fix: white panel when the bottom sheet is launched

This commit is contained in:
Ajay Sivan 2024-05-24 18:18:43 +05:30 committed by jo-mut
parent 777b2bb8da
commit 539b7bbff4
No known key found for this signature in database
GPG Key ID: 76AE8CD103294A70
1 changed files with 10 additions and 9 deletions

View File

@ -199,15 +199,16 @@
([component] (show-overlay component {}))
([component opts]
(navigation/dissmiss-overlay component)
(navigation/show-overlay
{:component {:name component
:id component
:options (merge (options/statusbar-and-navbar-options (:theme opts) nil nil)
{:layout {:componentBackgroundColor :transparent
:orientation ["portrait"]}
:overlay {:interceptTouchOutside true
:handleKeyboardEvents true}}
opts)}})))
(let [theme (rf/sub [:theme])]
(navigation/show-overlay
{:component {:name component
:id component
:options (merge (options/statusbar-and-navbar-options theme nil nil)
{:layout {:componentBackgroundColor :transparent
:orientation ["portrait"]}
:overlay {:interceptTouchOutside true
:handleKeyboardEvents true}}
opts)}}))))
(rf/reg-fx :show-toasts
(fn [[view-id theme]]