File tree 1 file changed +5
-4
lines changed
src/status_im/common/bottom_sheet_screen
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4
4
[quo.theme :as theme]
5
5
[react-native.core :as rn]
6
6
[react-native.gesture :as gesture]
7
- [react-native.hooks :as hooks]
8
7
[react-native.platform :as platform]
9
8
[react-native.reanimated :as reanimated]
10
9
[react-native.safe-area :as safe-area]
58
57
(set-animating-true )
59
58
(reanimated/animate translate-y height 300 )
60
59
(reanimated/animate opacity 0 300 )
61
- (rf/dispatch [:navigate-back ]))
60
+ (rf/dispatch [:navigate-back ])
61
+ true )
62
62
reset-open-sheet (fn []
63
63
(reanimated/animate translate-y 0 300 )
64
64
(reanimated/animate opacity 1 300 )
65
65
(set-animating-false 300 )
66
66
(reset! scroll-enabled? true ))]
67
67
(rn/use-effect
68
68
(fn []
69
+ (rn/hw-back-add-listener close)
69
70
(reanimated/animate translate-y 0 300 )
70
71
(reanimated/animate opacity 1 300 )
71
- (set-animating-false 300 )))
72
- ( hooks/use -back-handler close)
72
+ (set-animating-false 300 )
73
+ #( rn/hw -back-remove-listener close)) )
73
74
[rn/view {:style (style/container insets)}
74
75
(when-not skip-background?
75
76
[reanimated/view {:style (style/background opacity)}])
You can’t perform that action at this time.
0 commit comments