DylanVann / react-native-fast-image

🚩 FastImage, performant React Native image component.
MIT License
8.09k stars 1.47k forks source link

react-native 0.73 [FFFastImageView setOnClick:]: unrecognized selector sent to instance #1020

Open cbjs opened 7 months ago

cbjs commented 7 months ago

Exception thrown while executing UI block: -[FFFastImageView setOnClick:]: unrecognized selector sent to instance 0x1355be2c0

44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke RCTUIManager.m:1205 44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.207 __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 GSEventRunModal -[UIApplication _run] UIApplicationMain main start_sim 0x0 0x0

ShivamKJJW commented 6 months ago

@cbjs This issue is only reproducible in iOS. Here is a workaround to it:

Just wrap your FastImage component inside any View.

ubaid-wp commented 6 months ago

@cbjs This issue is only reproducible in iOS. Here is a workaround to it:

Just wrap your FastImage component inside any View.

Not working for me

tranhoangduong1994 commented 6 months ago

For me, this issue happened when I used a FastImage component as the direct child of the TouchableWithoutFeedback component. It can be fixed by either: