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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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