fix: reset profiles list translate-x while unmounting (#19315)

This commit is contained in:
Sean Hagstrom 2024-03-19 17:41:43 +00:00 committed by GitHub
parent 8fb42d2503
commit 772efa90d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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