Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing the modal immediately after opening for the second time on Fabric #145

Open
sivantha96 opened this issue Apr 16, 2024 · 0 comments

Comments

@sivantha96
Copy link

Hi! 馃憢

Firstly, thanks for your work on this project! 馃檪

When I open the modal the first time it works fine. The second time it opens up the modal, but seems like its invisible because of the translateY. It will start showing both modals after I open another modal. This issue started to occur after I enabled fabric.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-modalfy/src/lib/ModalStack.tsx b/node_modules/react-native-modalfy/src/lib/ModalStack.tsx
index 6eb20bb..9f5986f 100644
--- a/node_modules/react-native-modalfy/src/lib/ModalStack.tsx
+++ b/node_modules/react-native-modalfy/src/lib/ModalStack.tsx
@@ -47,7 +47,7 @@ const ModalStack = <P extends ModalfyParams>(props: Props<P>) => {
       }).start(() => {
         setStackStatus('hidden')
         setBackdropClosedItems([])
-        translateY.setValue(sh(100))
+        // translateY.setValue(sh(100))
       })
     }
   }, [backdropAnimationDuration, opacity, translateY, stackStatus])

This issue body was partially generated by patch-package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant