Skip to content

Conversation

@kmichalikk
Copy link
Contributor

Closes https://github.com/software-mansion/react-native-screens-labs/issues/598

Description

This PR aims to generalize the condition in RNSScreenShadowNodeCommitHook to also include the screen resize, without orientation change. Let's discuss the change & decide how "general" should it be.

Even when triggering the mechanism on every screen resize, this shouldn't be a problem, since the change is still rare.

Changes

Modified the screen size reset condition in RNSScreenShadowNodeCommitHook

Test code and steps to reproduce

Use Test2933 & try split screen, floating window.

@kmichalikk kmichalikk changed the title feat: Make commit hook condition for resetting screen size more general feat(Android): Make commit hook condition for resetting screen size more general Dec 23, 2025
Copy link
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

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

Hmm, this one is interesting and I'll revisit it.

I'm not sure whether we want to zero the shadow node state every single time when the screen dimensions change.

I'll look into it after new year. Thanks for the PR.

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.

3 participants