fix: reset profiles list translate-x while unmounting (#19315)
This commit is contained in:
parent
8fb42d2503
commit
772efa90d4
|
@ -140,6 +140,9 @@
|
|||
(reset! push-animation-fn-atom #(push-animation translate-x))
|
||||
(reset! pop-animation-fn-atom #(pop-animation translate-x))
|
||||
(fn []
|
||||
(when-let [pop-animation-fn @pop-animation-fn-atom]
|
||||
(when (not= translate-x 0)
|
||||
(pop-animation-fn)))
|
||||
(reset! push-animation-fn-atom nil)
|
||||
(reset! pop-animation-fn-atom nil))))
|
||||
[reanimated/view
|
||||
|
|
Loading…
Reference in New Issue