React Native Android custom views are able to declare events in 2 different ways in a ViewManager subclass :
- "bubbling" events via
getExportedCustomBubblingEventTypeConstants() - "direct" events via
getExportedCustomDirectEventTypeConstants()
What is the difference between these 2 types of event?
If I am trying to send an event from an Android custom view onClick(View v) method up to the JS representation of my view, which of these methods would I use to declare my custom event name?
Follow up: I ended up using a "direct" event to send a click from my Android view back to my JS component. This worked very well, but I would still like to know what the "bubbling" event is all about.