diff --git a/src/status_im2/navigation/core.cljs b/src/status_im2/navigation/core.cljs index 6b5321ddb6..3b29ac9474 100644 --- a/src/status_im2/navigation/core.cljs +++ b/src/status_im2/navigation/core.cljs @@ -87,7 +87,6 @@ {:component {:id comp :name comp :options (merge (options/statusbar-and-navbar) - {:layout {:orientation :portrait}} options (if (:topBar options) (options/merge-top-bar (options/topbar-options) options) @@ -167,7 +166,7 @@ :id comp :options (merge (options/statusbar) {:layout {:componentBackgroundColor :transparent - :orientation :portrait} + :orientation ["portrait"]} :overlay {:interceptTouchOutside true}} opts)}}))) @@ -178,7 +177,8 @@ (fn [] (show-overlay "toasts" {:overlay {:interceptTouchOutside false} - :layout {:componentBackgroundColor :transparent}}))) + :layout {:componentBackgroundColor :transparent + :orientation ["portrait"]}}))) (re-frame/reg-fx :hide-toasts (fn [] (dissmiss-overlay "toasts"))) ;; bottom sheet diff --git a/src/status_im2/navigation/options.cljs b/src/status_im2/navigation/options.cljs index 124a13d25a..3472e5b508 100644 --- a/src/status_im2/navigation/options.cljs +++ b/src/status_im2/navigation/options.cljs @@ -4,7 +4,7 @@ (defn default-options [] - {:layout {:orientation :portrait} + {:layout {:orientation ["portrait"]} :topBar {:visible false}}) ;; Note: Currently, the status bar style provided while setting the root has a high preference, @@ -27,14 +27,14 @@ {:topBar {:visible false} :layout {:componentBackgroundColor (or background-color (colors/theme-colors colors/white colors/neutral-100)) - :orientation :portrait + :orientation ["portrait"] :backgroundColor (or background-color (colors/theme-colors colors/white colors/neutral-100))}})) (def onboarding-layout {:componentBackgroundColor colors/neutral-80-opa-80-blur - :orientation :portrait + :orientation ["portrait"] :backgroundColor colors/neutral-80-opa-80-blur}) (defn navbar @@ -75,7 +75,7 @@ (merge {:modalPresentationStyle :overCurrentContext :layout {:componentBackgroundColor :transparent - :orientation :portrait + :orientation ["portrait"] :backgroundColor :transparent}} (if platform/android? {:statusBar {:backgroundColor :transparent @@ -85,6 +85,7 @@ (def sheet-options {:layout {:componentBackgroundColor :transparent + :orientation ["portrait"] :backgroundColor :transparent} :modalPresentationStyle :overCurrentContext})