Community collapsed header title animation fix (#19395)
This commit is contained in:
parent
60a4aa2f8e
commit
32098d2548
|
@ -113,7 +113,7 @@
|
|||
(and (= theme :dark) (= background :blur)) :grey
|
||||
:else :ghost)
|
||||
dropdown-state (if dropdown-selected? :active :default)]
|
||||
[rn/view {:style (style/center-content-container true center-opacity)}
|
||||
[reanimated/view {:style (style/center-content-container true center-opacity)}
|
||||
[dropdown/view
|
||||
{:type dropdown-type
|
||||
:state dropdown-state
|
||||
|
@ -124,7 +124,7 @@
|
|||
|
||||
(defn- token-center
|
||||
[{:keys [theme background token-logo token-name token-abbreviation center-opacity]}]
|
||||
[rn/view {:style (style/center-content-container false center-opacity)}
|
||||
[reanimated/view {:style (style/center-content-container false center-opacity)}
|
||||
[rn/image {:style style/token-logo :source token-logo}]
|
||||
[text/text
|
||||
{:style style/token-name
|
||||
|
@ -141,7 +141,7 @@
|
|||
|
||||
(defn- channel-center
|
||||
[{:keys [theme background channel-emoji channel-name channel-icon center-opacity]}]
|
||||
[rn/view {:style (style/center-content-container false center-opacity)}
|
||||
[reanimated/view {:style (style/center-content-container false center-opacity)}
|
||||
[rn/text {:style style/channel-emoji}
|
||||
channel-emoji]
|
||||
[text/text
|
||||
|
@ -154,7 +154,7 @@
|
|||
|
||||
(defn- title-description-center
|
||||
[{:keys [background theme picture title description center-opacity]}]
|
||||
[rn/view {:style (style/center-content-container false center-opacity)}
|
||||
[reanimated/view {:style (style/center-content-container false center-opacity)}
|
||||
(when picture
|
||||
[rn/view {:style style/group-avatar-picture}
|
||||
[group-avatar/view {:picture picture :size :size-28}]])
|
||||
|
@ -177,7 +177,7 @@
|
|||
(let [community? (= type :community)
|
||||
shown-logo (if community? community-logo network-logo)
|
||||
shown-name (if community? community-name network-name)]
|
||||
[rn/view {:style (style/center-content-container false center-opacity)}
|
||||
[reanimated/view {:style (style/center-content-container false center-opacity)}
|
||||
[rn/image
|
||||
{:style style/community-network-logo
|
||||
:source shown-logo}]
|
||||
|
@ -189,7 +189,7 @@
|
|||
|
||||
(defn- wallet-networks-center
|
||||
[{:keys [networks networks-on-press background center-opacity]}]
|
||||
[rn/view {:style (style/center-content-container true center-opacity)}
|
||||
[reanimated/view {:style (style/center-content-container true center-opacity)}
|
||||
[network-dropdown/view
|
||||
{:state :default
|
||||
:on-press networks-on-press
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
:blur
|
||||
:photo)
|
||||
:right-side page-nav-right-section-buttons
|
||||
:center-opacity (reanimated/get-shared-value opacity-animation)
|
||||
:center-opacity opacity-animation
|
||||
:overlay-shown? overlay-shown?}
|
||||
navigate-back? (assoc :icon-name :i/close
|
||||
:accessibility-label :back-button
|
||||
|
|
Loading…
Reference in New Issue