Skip to content

fix: Fixing bug that made masked view unresponsive after re-attaching#104

Merged
Naturalclar merged 1 commit intocallstack:masterfrom
tdekoning:master
Feb 20, 2021
Merged

fix: Fixing bug that made masked view unresponsive after re-attaching#104
Naturalclar merged 1 commit intocallstack:masterfrom
tdekoning:master

Conversation

@tdekoning
Copy link
Copy Markdown
Contributor

@tdekoning tdekoning commented Feb 17, 2021

Overview

When including a masked-view in one route (using a library like react navigation), and the user navigates to a new route on the stack and presses the back button, the masked-view will not rerender any more.

The problem is that the bitmap invalidation does not happen when the view is attached to the window. Causing calls of React native to dispatchDraw to not actually draw, keeping this component in a permanent state of mBitmapMaskInvalidated = false;

@tdekoning
Copy link
Copy Markdown
Contributor Author

tdekoning commented Feb 18, 2021

@Naturalclar This fixes a critical bug that was introduced by #98 , it would be great if this can be merged quickly 😄

@Naturalclar
Copy link
Copy Markdown
Contributor

@tdekoning thanks for the ping! I'll try to take a look at this tonight

Copy link
Copy Markdown
Contributor

@Naturalclar Naturalclar left a comment

Choose a reason for hiding this comment

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

@tdekoning thanks for the fix!

@Naturalclar Naturalclar changed the title Fixing bug that made masked view unresponsive after re-attaching fix: Fixing bug that made masked view unresponsive after re-attaching Feb 20, 2021
@Naturalclar Naturalclar merged commit 64dd56e into callstack:master Feb 20, 2021
@Naturalclar
Copy link
Copy Markdown
Contributor

This fix has been published in v0.2.2 🎉

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.

2 participants