react-native-macos/Libraries/NativeAnimation
Janic Duplessis 1fb4b6caa0 Native Animated - Support events using RCT{Direct|Bubbling}EventBlock on iOS (#25317)
Summary:
Reland https://github.com/facebook/react-native/issues/15611 and added the gcc warning that was different from fb internal config. The original PR missed the static keyword for the `RCTNormalizeAnimatedEventName` function which triggered the gcc warning internally but not with the OSS xcode config.

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/25317

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

Differential Revision: D15938856

Pulled By: cpojer

fbshipit-source-id: 7e7a3459e2a2e8b1254a2f1ec8153a159ea73eed
2019-06-21 03:05:59 -07:00
..
Drivers Fix deadstore in RCTSpringAnimation (#23643) 2019-02-25 11:36:56 -08:00
Nodes Fix connection of animated nodes and scroll offset with useNativeDriver. (#24177) 2019-06-06 04:52:19 -07:00
RCTAnimation.xcodeproj Native Animated - Support events using RCT{Direct|Bubbling}EventBlock on iOS (#25317) 2019-06-21 03:05:59 -07:00
RCTAnimationUtils.h Support the `Slow Animations` option of the iOS simulator (#21157) 2018-09-20 16:18:03 -07:00
RCTAnimationUtils.m fix broken animation tests 2018-09-28 09:17:17 -07:00
RCTNativeAnimatedModule.h Use surface observer for Animated 2019-03-07 17:39:00 -08:00
RCTNativeAnimatedModule.m Animations: attempt to mitigate crashes in T43628589 2019-06-20 15:00:21 -07:00
RCTNativeAnimatedNodesManager.h More iOS animation fixes 2019-04-08 09:15:14 -07:00
RCTNativeAnimatedNodesManager.m Native Animated - Support events using RCT{Direct|Bubbling}EventBlock on iOS (#25317) 2019-06-21 03:05:59 -07:00
React-RCTAnimation.podspec Split React.podspec into separate podspecs for each Xcode project (#23559) 2019-02-21 18:35:44 -08:00