You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Furthermore, even when importing AppKit instead for macOS, there are more issues in RNGestureHandlerButtonComponentView.mm, where UIView is used instead of the platform-independent RNGHUIView.
However, I don't know how to fix [_buttonView mountChildComponentView:childComponentView index:index]; simply not working (existing?) on macOS. No visible @interface for 'RNGestureHandlerButton' declares the selector 'mountChildComponentView:index:'
This line does work either with error No visible @interface for 'RNGestureHandlerButton' declares the selector 'updateLayoutMetrics:oldLayoutMetrics:':
Please see my repro.
But to do manually; start a new react-native community CLI project, initialize react-native-macos and add react-native-gesture handler to observe the error.
npx @react-native-community/cli init gesturehandlernewarchbug
cd gesturehandlernewarchbug/
yarn add react-native-macos@^0.75.0
npx react-native-macos-init
yarn add react-native-gesture-handler
cd macos
RCT_NEW_ARCH_ENABLED=1 pod install
# then start macos app via xcode or metro
## Description
Right now Gesture Handler fails to build on macOS on new architecture. This PR brings changes necessary to fix this problem.
Fixes#3144.
## Test plan
Build macOS example app on new architecture.
Description
Hi, react-native-gesture-handler cannot be built on react-native-macos with new architecture enabled.
This is due to iOS environment being expected in RNGestureHandlerButtonComponentView.h.
Furthermore, even when importing AppKit instead for macOS, there are more issues in RNGestureHandlerButtonComponentView.mm, where
UIView
is used instead of the platform-independentRNGHUIView
.However, I don't know how to fix
[_buttonView mountChildComponentView:childComponentView index:index];
simply not working (existing?) on macOS.No visible @interface for 'RNGestureHandlerButton' declares the selector 'mountChildComponentView:index:'
react-native-gesture-handler/apple/RNGestureHandlerButtonComponentView.mm
Lines 43 to 46 in a6741a9
This line does work either with error
No visible @interface for 'RNGestureHandlerButton' declares the selector 'updateLayoutMetrics:oldLayoutMetrics:'
:react-native-gesture-handler/apple/RNGestureHandlerButtonComponentView.mm
Line 85 in a6741a9
See repro here:
https://github.com/hsjoberg/gesturehandlernewarchbug
Steps to reproduce
Please see my repro.
But to do manually; start a new react-native community CLI project, initialize react-native-macos and add react-native-gesture handler to observe the error.
Note: you may have to add bundleUrl fix too: microsoft/react-native-macos#2164 (comment)
Snack or a link to a repository
https://github.com/hsjoberg/gesturehandlernewarchbug
Gesture Handler version
2.20.0
React Native version
0.75
Platforms
MacOS
JavaScript runtime
JSC
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
None
Device model
macOS
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: