Skip to content

Conversation

gabrieldonadel
Copy link
Contributor

Summary

While refactoring RNCSafeAreaProviderComponentView in #629 we ended up breaking builds for macOS because the willMoveToSuperview method does not exist in NSView's.
Given that this function is just being used for registering notifications, which are not used in macOS, we can just add a platform check to the whole block without needing to use the equivalent viewWillMoveToSuperview function

Test Plan

Before

image

After

image

image

Copy link
Collaborator

@janicduplessis janicduplessis left a comment

Choose a reason for hiding this comment

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

Thanks!

Maybe I should look into running macos build on CI, seems pretty easy to break currently

@janicduplessis janicduplessis merged commit 7a51b45 into AppAndFlow:main Jul 1, 2025
3 checks passed
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/fix-macos-build branch July 1, 2025 12:49
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