[#17533] fix: 'Sign in' page overlaps 'Main' page (#17608)

This commit is contained in:
Mohsen 2023-10-16 17:57:47 +03:00 committed by GitHub
parent 024f053af8
commit ff2dfe1a2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -311,7 +311,8 @@
:show-camera? show-camera?
:content-opacity content-opacity
:subtitle-opacity subtitle-opacity
:title-opacity title-opacity})]
:title-opacity title-opacity})
view-id (rf/sub [:view-id])]
(rn/use-effect
#(set-listener-torch-off-on-app-inactive torch?))
@ -319,9 +320,10 @@
(when animated?
(rn/use-effect
(fn []
(rn/hw-back-add-listener reset-animations-fn)
#(rn/hw-back-remove-listener reset-animations-fn))
[])
(when (= view-id :sign-in-intro)
(rn/hw-back-add-listener reset-animations-fn)
#(rn/hw-back-remove-listener reset-animations-fn)))
[view-id])
(animation/animate-subtitle subtitle-opacity)
(animation/animate-title title-opacity)
(animation/animate-bottom bottom-view-translate-y))