Compare commits

...
Author SHA1 Message Date
jo-mut 31d0c14247 code refactor 2024-05-27 00:58:53 +02:00
Ajay Sivan 539b7bbff4 fix: white panel when the bottom sheet is launched 2024-05-27 00:55:59 +02:00
+13 -15
View File
@@ -199,23 +199,21 @@
([component] (show-overlay component {})) ([component] (show-overlay component {}))
([component opts] ([component opts]
(navigation/dissmiss-overlay component) (navigation/dissmiss-overlay component)
(navigation/show-overlay (let [theme (rf/sub [:theme])
{:component {:name component [rnn-status-bar _ nav-bar-color _] (get-status-nav-color component theme)]
:id component (navigation/show-overlay
:options (merge (options/statusbar-and-navbar-options (:theme opts) nil nil) {:component {:name component
{:layout {:componentBackgroundColor :transparent :id component
:orientation ["portrait"]} :options (merge
:overlay {:interceptTouchOutside true (options/statusbar-and-navbar-options theme rnn-status-bar nav-bar-color)
:handleKeyboardEvents true}} {:layout {:componentBackgroundColor :transparent
opts)}}))) :orientation ["portrait"]}
:overlay {:interceptTouchOutside true
:handleKeyboardEvents true}}
opts)}}))))
(rf/reg-fx :show-toasts (rf/reg-fx :show-toasts
(fn [[view-id theme]] (fn [] (show-overlay "toasts")))
(let [[rnn-status-bar nav-bar-color] (get-status-nav-color view-id theme)]
(show-overlay "toasts"
(assoc (options/statusbar-and-navbar-options nil rnn-status-bar nav-bar-color)
:overlay
{:interceptTouchOutside false})))))
(rf/reg-fx :hide-toasts (rf/reg-fx :hide-toasts
(fn [] (navigation/dissmiss-overlay "toasts"))) (fn [] (navigation/dissmiss-overlay "toasts")))