Janic Duplessis
77b8c09727
Implement sticky headers in JS using Native Animated
...
Summary:
This re-implements sticky headers in JS to make it work on Android.
The only change that was needed was to expose a way to attach a an animated value to an event manually since we can't use the Animated wrapper and `Animated.event` to do it for us because this is implemented directly in the `ScrollView` component. Simply exposed `attachNativeEvent` that takes a ref, event name and event object mapping. This is what is used by `Animated.event`.
TODO:
- Need to check why momentum scrolling isn't triggering scroll events properly on Android.
- Remove native iOS implementation
- cleanup / fix flow
**Test plan**
Test the example list in UIExplorer, test the ListViewPaging example.
Closes https://github.com/facebook/react-native/pull/11315
Differential Revision: D4450278
Pulled By: sahrens
fbshipit-source-id: fec8da2cffce9807d74f8e518ebdefeb6a708667
2017-03-02 15:15:31 -08:00
..
2017-02-17 14:48:17 -08:00
2017-02-27 14:04:56 -08:00
2016-07-12 05:59:13 -07:00
2017-02-27 18:34:19 -08:00
2017-02-27 18:34:19 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2016-10-16 04:13:42 -07:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2016-07-12 05:59:13 -07:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2016-07-18 23:28:25 -07:00
2017-02-27 14:04:56 -08:00
2016-10-16 11:13:40 -07:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-24 12:45:56 -08:00
2017-03-01 17:55:30 -08:00
2016-07-12 05:59:13 -07:00
2017-02-27 14:04:56 -08:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2017-02-27 14:04:56 -08:00
2016-11-22 21:13:52 -08:00
2017-02-27 14:04:56 -08:00
2017-03-02 07:47:21 -08:00
2016-07-26 01:13:31 -07:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-28 02:17:23 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-02 08:58:33 -08:00
2017-02-27 14:04:56 -08:00
2016-10-16 06:43:46 -07:00
2017-02-27 14:04:56 -08:00
2017-03-01 17:55:30 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2016-09-06 03:59:01 -07:00
2017-02-27 14:04:56 -08:00
2016-11-24 22:43:28 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2016-07-12 05:59:13 -07:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-03-01 17:55:30 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2017-02-28 15:45:43 -08:00
2017-02-28 15:45:43 -08:00
2017-02-28 15:45:43 -08:00
2016-07-26 01:13:31 -07:00
2017-02-27 14:04:56 -08:00
2016-10-16 11:13:40 -07:00
2017-03-02 15:15:31 -08:00
2017-03-02 13:17:35 -08:00
2017-03-02 13:17:35 -08:00
2017-02-28 15:45:43 -08:00
2016-12-07 21:43:35 -08:00
2016-09-06 19:58:35 -07:00
2017-02-27 14:04:56 -08:00
2016-07-26 01:13:31 -07:00
2017-02-28 15:45:43 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00
2017-02-27 14:04:56 -08:00