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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix - using the new useWindowDimensions api to fix unmounting issues #703

Closed
wants to merge 7 commits into from

Conversation

joe-brabben
Copy link

Overview

Unmounting causes issues with the removal of the event listener so I have used the new useWindowDimensions hook to remove the need for a listener all together as the height and width are got dynamically now.

Test Plan

I ran yarn lint and prettify for code structure testing and tested the modal works on differing screen sizes using android studio.

@joe-brabben
Copy link
Author

Hi I created a pull request a while ago and did similar changes but had no proper testing for iOS. Since then I have been able to test on iOS and seen that the original issue was not solved in a new update and that the change did need to be applied. I got the pull request working now and it solves the issues with unmounting the animations. Thanks

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

Successfully merging this pull request may close these issues.

None yet

1 participant