mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-26 07:49:18 +00:00
[change] ScrollView props and event handling
- Update 'scrollEventThrottle' prop - Filter non-DOM props - Persist debounced scroll events. Fix #209
This commit is contained in:
@@ -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) => (
|
||||
|
||||
Reference in New Issue
Block a user