-
Notifications
You must be signed in to change notification settings - Fork 135
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
[LogBox] Add NSWindow based version #645
Conversation
CGPoint touchLocation = [self.view convertPoint:touch.locationInWindow fromView:nil]; | ||
// -[NSView hitTest:] takes coordinates in a view's superview coordinate system. | ||
// The assumption here is that a RCTUIView/RCTSurfaceView will always have a superview. | ||
CGPoint touchLocation = [self.view.superview convertPoint:touch.locationInWindow fromView:nil]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect this issue never arose before because previously the only superview (RCTRootView) would have the same coordinate system.
The navigation buttons in the header not responding appears to be due to
Or perhaps that the touchable view that wraps it is too small. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just a couple questions/comments inline
The issue with the navigation buttons was an actual issue with coordinate translation, which is fixed now 👍 |
@tom-un This should be good to go. |
Related to #621
Please select one of the following
Summary
LogBox is the preferred way to view warnings/errors in v0.63.0.
Changelog
[macOS] [Added] - NSWindow based version of LogBox
TODO
Still minor things to do, but the meat of the patch can be reviewed.
Test Plan
Microsoft Reviewers: Open in CodeFlow