-
Notifications
You must be signed in to change notification settings - Fork 149
feat(fabric): Add macOS host platform to ReactCommon #2690
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
Conversation
...nderer/components/view/platform/macos/react/renderer/components/view/HostPlatformViewProps.h
Show resolved
Hide resolved
...nents/view/platform/macos/react/renderer/components/view/HostPlatformViewTraitsInitializer.h
Outdated
Show resolved
Hide resolved
...act/renderer/components/view/platform/macos/react/renderer/components/view/MacOSViewEvents.h
Outdated
Show resolved
Hide resolved
...act/renderer/components/view/platform/macos/react/renderer/components/view/MacOSViewEvents.h
Show resolved
Hide resolved
43c25ad
to
45957ea
Compare
Another Q: Should we exclude the They're all files that most just namespace the base class, so they're safe to compile. namespace facebook::react {
using HostPlatformFoo= BaseFoo;
} // namespace facebook::react The annoying part is they both show up in Xcode and it's hard to tell which one you want to edit. The counterargument would be that we would have different files included in our build for iOS vs macOS which might make building more annoying |
45957ea
to
1a0b81a
Compare
Needs #2690 to land first. ## Summary: Implement focus on RCTViewComponentView. Much of the implementation is taken from #1437, #2117 and comparing against `RCTView`. The border path used for `drawFocusRingMask` is the same as what is used for box shadows and cursors. ## Test Plan: The focus loop seems nonexistent on both paper and Fabric in RNTester... but I can verify that calling `ref.current?/.focus()` on a Pressable displays the focus ring
Summary:
Add a new macOS host platform folder, with overrides for some of the HostPlatform* files to implement some macOS only props. This follows the pattern in React Native Core that Android uses, and what React Native Windows does.
Some notes:
RCTPullToRefreshViewComponentView.mm
. This is later fixed upstream so we can remove the diff then.RCTViewComponentView
yet, that will be in a future PR)Test Plan:
CI should pass.