Files
react-native/Libraries
Janic Duplessis 083f835c9f Native Animated - Support events using RCT{Direct|Bubbling}EventBlock on iOS (#15611)
Summary:
When calling a prop of type `RCTDirectEventBlock` or `RCTBubblingEventBlock` it uses a completely different code path than events using `[RCTEventDispatcher sendEvent:]` and those were not dispatched to the `RCTEventDispatcherListener`s. We also do some event name normalization which caused issues between the JS and native event names. To fix that I simply remove the parts we normalize from the event key.

## Changelog:

[iOS] [Fixed] - Support events using RCT{Direct|Bubbling}EventBlock
Pull Request resolved: https://github.com/facebook/react-native/pull/15611

Test Plan: Added a Slider (it used RCTBubblingEventBlock for it's onValueChange event) that can control a native animated value in RNTester to reproduce the bug and made sure this diff fixes it.

Differential Revision: D15896806

Pulled By: cpojer

fbshipit-source-id: c0ae463f4c3f890062238575e813ed7ab3b7a7e6
2019-06-19 01:42:54 -07:00
..
2019-05-20 18:05:55 -07:00
2019-06-17 10:59:05 -07:00
2019-06-03 23:03:41 -07:00
2019-05-31 19:56:37 -07:00
2019-06-06 11:34:11 -07:00
2019-06-07 11:38:31 -07:00
2019-05-13 11:43:49 -07:00
2019-06-18 23:10:50 -07:00
2019-06-07 06:39:28 -07:00
2019-06-12 06:19:32 -07:00