Skip to content

fix(ios): Add/remove shadow for reusable views - #10409

Merged
NathanWalker merged 2 commits into
NativeScript:mainfrom
CatchABus:ios-shadow-reusable-fix
Oct 14, 2023
Merged

NathanWalker merged 2 commits into
NativeScript:mainfrom
CatchABus:ios-shadow-reusable-fix

Conversation

@CatchABus

@CatchABus CatchABus commented Oct 14, 2023 •

Copy link
Copy Markdown
Contributor

PR Checklist

What is the current behavior?

When it comes to reusable views, it seems that view box shadow is not removed when view gets removed from view tree.
That is because shadow layer belongs to parent and we rely on disposeNativeView to cleanup shadows but that doesn't seem to be the right approach.

What is the new behavior?

Add/remove shadows along with view, regardless of being reusable or not. It's also a good replacement for my previous PR.

@cla-bot cla-bot Bot added the cla: yes label Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants