fix wrong counter color in jump-to screen (#17554)

This commit is contained in:
Parvesh Monu 2023-10-05 18:46:25 +05:30 committed by GitHub
parent a7f0566050
commit c2833ae33d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 13 deletions

View File

@ -1,10 +1,11 @@
(ns status-im2.contexts.shell.jump-to.components.bottom-tabs.view (ns status-im2.contexts.shell.jump-to.components.bottom-tabs.view
(:require [utils.re-frame :as rf] (:require [quo2.core :as quo]
[utils.re-frame :as rf]
[quo2.theme :as quo.theme]
[react-native.core :as rn] [react-native.core :as rn]
[react-native.gesture :as gesture] [react-native.gesture :as gesture]
[react-native.platform :as platform] [react-native.platform :as platform]
[react-native.reanimated :as reanimated] [react-native.reanimated :as reanimated]
[quo2.core :as quo]
[status-im2.contexts.shell.jump-to.utils :as utils] [status-im2.contexts.shell.jump-to.utils :as utils]
[status-im2.contexts.shell.jump-to.state :as state] [status-im2.contexts.shell.jump-to.state :as state]
[status-im2.contexts.shell.jump-to.animation :as animation] [status-im2.contexts.shell.jump-to.animation :as animation]
@ -58,14 +59,15 @@
shared-values))] shared-values))]
(utils/load-stack @state/selected-stack-id) (utils/load-stack @state/selected-stack-id)
(reanimated/set-shared-value (:pass-through? shared-values) pass-through?) (reanimated/set-shared-value (:pass-through? shared-values) pass-through?)
[reanimated/view [quo.theme/provider {:theme :dark}
{:style (style/bottom-tabs-container pass-through? (:bottom-tabs-height shared-values))} [reanimated/view
(when pass-through? {:style (style/bottom-tabs-container pass-through? (:bottom-tabs-height shared-values))}
[reanimated/blur-view (blur-overlay-params bottom-tabs-blur-overlay-style)]) (when pass-through?
[rn/view {:style (style/bottom-tabs)} [reanimated/blur-view (blur-overlay-params bottom-tabs-blur-overlay-style)])
[gesture/gesture-detector {:gesture communities-double-tab-gesture} [rn/view {:style (style/bottom-tabs)}
[bottom-tab :i/communities :communities-stack shared-values notifications-data]] [gesture/gesture-detector {:gesture communities-double-tab-gesture}
[gesture/gesture-detector {:gesture messages-double-tap-gesture} [bottom-tab :i/communities :communities-stack shared-values notifications-data]]
[bottom-tab :i/messages :chats-stack shared-values notifications-data]] [gesture/gesture-detector {:gesture messages-double-tap-gesture}
[bottom-tab :i/wallet :wallet-stack shared-values notifications-data] [bottom-tab :i/messages :chats-stack shared-values notifications-data]]
[bottom-tab :i/browser :browser-stack shared-values notifications-data]]])) [bottom-tab :i/wallet :wallet-stack shared-values notifications-data]
[bottom-tab :i/browser :browser-stack shared-values notifications-data]]]]))