Skip to content
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

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

Open
cbjs opened this issue Dec 7, 2023 · 3 comments
Labels

Comments

@cbjs
Copy link

cbjs commented Dec 7, 2023

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 cbjs added the bug label Dec 7, 2023
@cbjs cbjs changed the title react-native 0.73 react-native 0.73 [FFFastImageView setOnClick:]: unrecognized selector sent to instance Dec 7, 2023
@ShivamKJJW
Copy link

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

Just wrap your FastImage component inside any View.

@ubaid-wp
Copy link

@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
Copy link

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 a View (as suggested by @ShivamKJJW)
  • Instead of TouchableWithoutFeedback, using TouchableOpacity with the activeOpacity being 1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants