fix alert banner flicker in ios (#19495)
This commit is contained in:
parent
8b417524fa
commit
074a2b292d
|
@ -46,12 +46,14 @@
|
|||
safe-area-top (safe-area/get-top)
|
||||
colors-map (get-colors-map theme)]
|
||||
[hole-view/hole-view
|
||||
{:style {:background-color colors/neutral-100}
|
||||
;; required for fix flicker issue https://github.com/status-im/status-mobile/issues/19490
|
||||
{:style {:padding-bottom 1}
|
||||
:holes [{:x 0
|
||||
:y (+ safe-area-top (* constants/alert-banner-height banners-count))
|
||||
:width (:width (rn/get-window))
|
||||
:height constants/alert-banner-height
|
||||
:borderRadius style/border-radius}]}
|
||||
[rn/view {:style {:background-color colors/neutral-100}}
|
||||
[rn/view
|
||||
{:style {:height safe-area-top
|
||||
:background-color (get-in colors-map
|
||||
|
@ -65,4 +67,4 @@
|
|||
[banner
|
||||
(assoc alert-banner
|
||||
:colors-map colors-map
|
||||
:second-banner? (= 2 banners-count))])]))
|
||||
:second-banner? (= 2 banners-count))])]]))
|
||||
|
|
Loading…
Reference in New Issue