RCTModernEventEmitter fires twice for android fabric component #65
Unanswered
BraveEvidence
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to create a
fabric
component forandroid
, specifically I want to use theonClickHandler
of thebutton
component and pass acallback
toreact-native
side viaRCTModernEventEmitter
. It works fine for iOS but for android theRCTModernEventEmitter
emits twice every time I click the eventThis is my spec
On native side I have created following files
On
JS
sideI get
value
inonClickHandler
ofMyButtonView
twice even though I press thebutton
onceFullrepo is here https://github.com/PritishSawant/ReactNativeFabricEventListenerExample
Beta Was this translation helpful? Give feedback.
All reactions