|
1 | 1 | (ns status-im2.contexts.shell.jump-to.components.bottom-tabs.view
|
2 | 2 | (:require [utils.re-frame :as rf]
|
3 | 3 | [react-native.core :as rn]
|
4 |
| - [react-native.blur :as blur] |
5 | 4 | [react-native.gesture :as gesture]
|
| 5 | + [react-native.platform :as platform] |
6 | 6 | [react-native.reanimated :as reanimated]
|
7 | 7 | [status-im2.contexts.shell.jump-to.utils :as utils]
|
8 | 8 | [status-im2.contexts.shell.jump-to.state :as state]
|
|
14 | 14 | (defn blur-overlay-params
|
15 | 15 | [style]
|
16 | 16 | {:style style
|
17 |
| - :blur-amount 30 |
18 |
| - :blur-radius 25 |
| 17 | + :blur-amount (if platform/android? 30 20) |
| 18 | + :blur-radius (if platform/android? 25 10) |
19 | 19 | :blur-type :transparent
|
20 | 20 | :overlay-color :transparent})
|
21 | 21 |
|
|
53 | 53 | (gesture/number-of-taps 2)
|
54 | 54 | (gesture/on-start
|
55 | 55 | (fn [_event]
|
56 |
| - (rf/dispatch [:messages-home/select-tab :tab/recent]))))] |
| 56 | + (rf/dispatch [:messages-home/select-tab :tab/recent])))) |
| 57 | + bottom-tabs-blur-overlay-style (style/bottom-tabs-blur-overlay (:bottom-tabs-height |
| 58 | + shared-values))] |
57 | 59 | (utils/load-stack @state/selected-stack-id)
|
58 | 60 | (reanimated/set-shared-value (:pass-through? shared-values) pass-through?)
|
59 | 61 | [reanimated/view
|
60 | 62 | {:style (style/bottom-tabs-container pass-through? (:bottom-tabs-height shared-values))}
|
61 | 63 | (when pass-through?
|
62 |
| - [blur/view (blur-overlay-params style/bottom-tabs-blur-overlay)]) |
| 64 | + [reanimated/blur-view (blur-overlay-params bottom-tabs-blur-overlay-style)]) |
63 | 65 | [rn/view {:style (style/bottom-tabs)}
|
64 | 66 | [gesture/gesture-detector {:gesture communities-double-tab-gesture}
|
65 | 67 | [bottom-tab :i/communities :communities-stack shared-values notifications-data]]
|
|
0 commit comments