|
1 | 1 | (ns status-im2.contexts.shell.bottom-tabs |
2 | 2 | (:require [quo2.components.navigation.bottom-nav-tab :as bottom-nav-tab] |
3 | 3 | [react-native.core :as rn] |
| 4 | + [quo2.foundations.colors :as colors] |
4 | 5 | [react-native.reanimated :as reanimated] |
5 | 6 | [status-im2.contexts.shell.animation :as animation] |
6 | 7 | [status-im2.contexts.shell.constants :as shell.constants] |
|
17 | 18 | :on-press #(animation/bottom-tab-on-press stack-id) |
18 | 19 | :accessibility-label (str (name stack-id) "-tab")}]) |
19 | 20 |
|
| 21 | +(defn tabs [shared-values] |
| 22 | + [rn/view {:style (styles/bottom-tabs)} |
| 23 | + [bottom-tab :i/communities :communities-stack shared-values] |
| 24 | + [bottom-tab :i/messages :chats-stack shared-values] |
| 25 | + [bottom-tab :i/wallet :wallet-stack shared-values] |
| 26 | + [bottom-tab :i/browser :browser-stack shared-values]]) |
| 27 | + |
| 28 | +(defn bottom-tabs-blur-background [shared-values] |
| 29 | + [rn/blur-view |
| 30 | + {:style {:height 120 |
| 31 | + :position :absolute |
| 32 | + :width "100%" |
| 33 | + :bottom 1 |
| 34 | + :background-color colors/neutral-100-opa-70} |
| 35 | + :blur-amount 10 |
| 36 | + :blur-type :dark |
| 37 | + :overlay-color :transparent}]) |
| 38 | + |
20 | 39 | (defn bottom-tabs |
21 | 40 | [] |
22 | 41 | [:f> |
|
28 | 47 | original-style)] |
29 | 48 | (animation/load-stack @animation/selected-stack-id) |
30 | 49 | [reanimated/view {:style animated-style} |
31 | | - [rn/view {:style (styles/bottom-tabs)} |
32 | | - [bottom-tab :i/communities :communities-stack shared-values] |
33 | | - [bottom-tab :i/messages :chats-stack shared-values] |
34 | | - [bottom-tab :i/wallet :wallet-stack shared-values] |
35 | | - [bottom-tab :i/browser :browser-stack shared-values]]]))]) |
| 50 | + [bottom-tabs-blur-background shared-values] |
| 51 | + [tabs shared-values]]))]) |
0 commit comments