Don't re-open bottom sheet if now closing

Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
This commit is contained in:
Gheorghe Pinzaru 2020-07-14 12:15:56 +03:00
parent fa4968f22c
commit b7bc7c4e5d
No known key found for this signature in database
GPG Key ID: C9A094959935A952
1 changed files with 4 additions and 4 deletions

View File

@ -157,10 +157,10 @@
(fn []
(when (and (> height min-height)
@visible)
(animated/block
[(animated/stop-clock clock)
(animated/set open-snap-point (* -1 sheet-height))
(animated/set manual-open 1)])))
(animated/cond* (animated/not* manual-close)
[(animated/stop-clock clock)
(animated/set open-snap-point (* -1 sheet-height))
(animated/set manual-open 1)])))
[height @visible])
;; NOTE(Ferossgp): Remove me when RNGH will suport modal
(rn/use-back-handler