react-native/Libraries/NativeAnimation
Janic Duplessis 921b9ac53d Native Animated - Support multiple events attached to the same prop
Summary:
Re-applying the diff that was reverted in D4659669 / b87f4abf78 because of some crashes with fixes from D4659708 merged in.

 ---

Fixes a bug that happens when trying to use ScrollView with sticky headers and native `Animated.event` with `onScroll`. Made a few changes to the ListViewPaging UIExplorer example to repro https://gist.github.com/janicduplessis/17e2fcd99c6ea49ced2954d881011b09.

What happens is we need to be able to add multiple events to the same prop + viewTag pair. To do that I simple changed the data structure to `Map<prop+viewTag, List<AnimatedEventDriver>>` and try to optimize for the case where there is only one item in the list since it will be the case 99% of the time.

**Test plan**
Tested by reproducing the bug with the above gist and made sure it was fixed after applying this diff.
Closes https://github.com/facebook/react-native/pull/12697

Reviewed By: fkgozali

Differential Revision: D4661105

Pulled By: sahrens

fbshipit-source-id: c719dc85f45c1a142ef5b9ebfe0a82ae8ec66497
2017-03-09 15:30:28 -08:00
..
Drivers remove unused includes in fbobjc/Libraries 2017-02-19 18:33:49 -08:00
Nodes Drive any numerical prop via NativeAnimated 2017-01-26 18:28:53 -08:00
RCTAnimation.xcodeproj Drive any numerical prop via NativeAnimated 2017-01-26 18:28:53 -08:00
RCTAnimationUtils.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTAnimationUtils.m Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTNativeAnimatedModule.h Fix NativeAnimation invalidation & races on iOS 2016-11-28 11:13:31 -08:00
RCTNativeAnimatedModule.m Native Animated - Support multiple events attached to the same prop 2017-03-09 15:30:28 -08:00
RCTNativeAnimatedNodesManager.h Native Animated - Support multiple events attached to the same prop 2017-03-09 15:30:28 -08:00
RCTNativeAnimatedNodesManager.m Native Animated - Support multiple events attached to the same prop 2017-03-09 15:30:28 -08:00