[change] ScrollView props and event handling

- Update 'scrollEventThrottle' prop
- Filter non-DOM props
- Persist debounced scroll events.

Fix #209
This commit is contained in:
Nicolas Gallagher
2016-11-21 21:10:11 -08:00
parent 8352c7cbda
commit abd1227a94
3 changed files with 27 additions and 8 deletions
@@ -7,8 +7,8 @@ storiesOf('component: ScrollView', module)
<View style={styles.scrollViewContainer}>
<ScrollView
contentContainerStyle={styles.scrollViewContentContainerStyle}
onScroll={e => console.log('ScrollView.onScroll', e)}
scrollEventThrottle={1} // 1 event per second
onScroll={e => { console.log('ScrollView.onScroll', e); } }
scrollEventThrottle={1000} // 1 event per second
style={styles.scrollViewStyle}
>
{Array.from({ length: 50 }).map((item, i) => (