react-native-fast-image
react-native-fast-image copied to clipboard
react-native 0.73 [FFFastImageView setOnClick:]: unrecognized selector sent to instance
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
@cbjs This issue is only reproducible in iOS. Here is a workaround to it:
Just wrap your FastImage
component inside any View
.
@cbjs This issue is only reproducible in iOS. Here is a workaround to it:
Just wrap your
FastImage
component inside anyView
.
Not working for me
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:
- Wrapping the
FastImage
component in aView
(as suggested by @ShivamKJJW) - Instead of
TouchableWithoutFeedback
, usingTouchableOpacity
with theactiveOpacity
being 1.0.
Any solution? I have the same probelm with all TouchableOpacity components
the solution is this:
https://github.com/TheWidlarzGroup/react-native-video/pull/3688/files
you need the following to FFFastImageView.m using patch-package:
- (void)setOnClick:(id)sender {
// Implementation can be left empty as in the Swift version
}
the solution is this:
https://github.com/TheWidlarzGroup/react-native-video/pull/3688/files
you need the following to FFFastImageView.m using patch-package:
- (void)setOnClick:(id)sender { // Implementation can be left empty as in the Swift version }
Worked for me 🙌🏻