mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-16 19:54:45 +00:00
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
|
(and (= theme :dark) (= background :blur)) :grey
|
||||||
:else :ghost)
|
:else :ghost)
|
||||||
dropdown-state (if dropdown-selected? :active :default)]
|
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
|
[dropdown/view
|
||||||
{:type dropdown-type
|
{:type dropdown-type
|
||||||
:state dropdown-state
|
:state dropdown-state
|
||||||
@ -124,7 +124,7 @@
|
|||||||
|
|
||||||
(defn- token-center
|
(defn- token-center
|
||||||
[{:keys [theme background token-logo token-name token-abbreviation center-opacity]}]
|
[{: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}]
|
[rn/image {:style style/token-logo :source token-logo}]
|
||||||
[text/text
|
[text/text
|
||||||
{:style style/token-name
|
{:style style/token-name
|
||||||
@ -141,7 +141,7 @@
|
|||||||
|
|
||||||
(defn- channel-center
|
(defn- channel-center
|
||||||
[{:keys [theme background channel-emoji channel-name channel-icon center-opacity]}]
|
[{: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}
|
[rn/text {:style style/channel-emoji}
|
||||||
channel-emoji]
|
channel-emoji]
|
||||||
[text/text
|
[text/text
|
||||||
@ -154,7 +154,7 @@
|
|||||||
|
|
||||||
(defn- title-description-center
|
(defn- title-description-center
|
||||||
[{:keys [background theme picture title description center-opacity]}]
|
[{: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
|
(when picture
|
||||||
[rn/view {:style style/group-avatar-picture}
|
[rn/view {:style style/group-avatar-picture}
|
||||||
[group-avatar/view {:picture picture :size :size-28}]])
|
[group-avatar/view {:picture picture :size :size-28}]])
|
||||||
@ -177,7 +177,7 @@
|
|||||||
(let [community? (= type :community)
|
(let [community? (= type :community)
|
||||||
shown-logo (if community? community-logo network-logo)
|
shown-logo (if community? community-logo network-logo)
|
||||||
shown-name (if community? community-name network-name)]
|
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
|
[rn/image
|
||||||
{:style style/community-network-logo
|
{:style style/community-network-logo
|
||||||
:source shown-logo}]
|
:source shown-logo}]
|
||||||
@ -189,7 +189,7 @@
|
|||||||
|
|
||||||
(defn- wallet-networks-center
|
(defn- wallet-networks-center
|
||||||
[{:keys [networks networks-on-press background center-opacity]}]
|
[{: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
|
[network-dropdown/view
|
||||||
{:state :default
|
{:state :default
|
||||||
:on-press networks-on-press
|
:on-press networks-on-press
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
:blur
|
:blur
|
||||||
:photo)
|
:photo)
|
||||||
:right-side page-nav-right-section-buttons
|
:right-side page-nav-right-section-buttons
|
||||||
:center-opacity (reanimated/get-shared-value opacity-animation)
|
:center-opacity opacity-animation
|
||||||
:overlay-shown? overlay-shown?}
|
:overlay-shown? overlay-shown?}
|
||||||
navigate-back? (assoc :icon-name :i/close
|
navigate-back? (assoc :icon-name :i/close
|
||||||
:accessibility-label :back-button
|
:accessibility-label :back-button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user