Skip to content

DialogDismissibleView - fix bug with delayed insets #1209

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

Merged

Conversation

M-i-k-e-l
Copy link
Collaborator

Description

DialogDismissibleView - fix bug with delayed insets (we have await in our private repo)
BTW, I think that code can probably be moved to public.

Changelog

DialogDismissibleView - fix bug with delayed insets

@M-i-k-e-l M-i-k-e-l added the Important for Next Release PR that must be included in the release version label Mar 1, 2021
@M-i-k-e-l M-i-k-e-l requested a review from ethanshar March 1, 2021 18:59
Comment on lines +66 to +67
const TOP_INSET = useRef<number>(Constants.isIphoneX ? Constants.getSafeAreaInsets().top : Constants.isIOS ? 20 : 0);
const BOTTOM_INSET = useRef<number>(Constants.isIphoneX ? Constants.getSafeAreaInsets().bottom : Constants.isIOS ? 20 : 0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at it now, it feels this kind of logic should be elsewhere, I guess in Constants. WDYT?
I can approve and we can refactor later of course

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm adding a ticket for this, it'll require some adjusting in both public and private, so I'd rather not mix it in this fix.

@ethanshar ethanshar merged commit a6bc27d into master Mar 2, 2021
@M-i-k-e-l M-i-k-e-l deleted the fix/dialog-dismissible-view-problem-with-delayed-insets branch October 4, 2021 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Important for Next Release PR that must be included in the release version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants