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

feat: don't set display: 'none' on frozen screens #1208

Conversation

kacperkapusciak
Copy link
Member

@kacperkapusciak kacperkapusciak commented Nov 10, 2021

Description

The Suspense mechanism in react-freeze sets display: none on a frozen screen. This sometimes results in an 'empty' screen when navigating between multiple screens at once (e.g. by using iOS back button menu).

This PR prevents showing frozen screen by making the display property on viewConfig.validAttributes.style not valid.

A detailed explanation can be found here

Thank you @grahammendick for this brilliant idea! 🙌

Fixes #1207

Test code and steps to reproduce

Test658, Test791, TestFreeze in TestsExample/ project

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

kacperkapusciak and others added 2 commits November 10, 2021 10:08
Co-authored-by: Graham Mendick <graham.mendick@gmail.com>
Copy link
Member

@WoLewicki WoLewicki left a comment

Choose a reason for hiding this comment

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

Looks good 🎉

src/index.native.tsx Outdated Show resolved Hide resolved
src/index.native.tsx Show resolved Hide resolved
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.

Pressing back fast on iOS may show frozen scene
2 participants