Open thejustinwalsh opened 7 months ago
react-native -v: 12.3.2 npm ls react-native-macos: react-native-macos@0.73.17 node -v: v18.15.0 npm -v: 9.7.2 yarn --version: 1.22.21 xcodebuild -version: Xcode 15.3 Build version 15E204a
Add a Text component with an onBlur event handler...
<Text onBlur={() => {}}>
This component is valid on react-native for iOS / Andoird / Expo and does not throw an exception.
On react-native-macos, the following exception is thrown...
Exception thrown while executing UI block: -[RCTTextView setOnBlur:]: unrecognized selector sent to instance 0x11e4a34f0 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke RCTUIManager.m:1265 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.189 __RCTExecuteOnMainQueue_block_invoke _dispatch_call_block_and_release _dispatch_client_callout _dispatch_main_queue_drain _dispatch_main_queue_callback_4CF __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ __CFRunLoopRun CFRunLoopRunSpecific RunCurrentEventLoopInMode ReceiveNextEventCommon _BlockUntilNextEventMatchingListInModeWithFilter _DPSNextEvent -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] -[NSApplication run] NSApplicationMain main start
This was discovered when attempting to use https://github.com/tamagui/tamagui on react-native-macos
https://snack.expo.dev/@thejustinwalsh/text-on-blur
No response
Thanks for the report! Interesting..
Environment
Steps to reproduce the bug
Add a Text component with an onBlur event handler...
Expected Behavior
This component is valid on react-native for iOS / Andoird / Expo and does not throw an exception.
Actual Behavior
On react-native-macos, the following exception is thrown...
This was discovered when attempting to use https://github.com/tamagui/tamagui on react-native-macos
Reproducible Demo
https://snack.expo.dev/@thejustinwalsh/text-on-blur
Additional context
No response