Summary: This pull request fixes a glitch that occurred when scrolling horizontally, as described in the #3060.
Closes https://github.com/facebook/react-native/pull/3169

Reviewed By: @​svcscm

Differential Revision: D2500186

Pulled By: @mkonicek
This commit is contained in:
Mike Grabowski 2015-10-02 13:57:35 -07:00 committed by facebook-github-bot-7
parent 0fb2fb37cc
commit 2f76c8a4a9
1 changed files with 2 additions and 2 deletions

View File

@ -33,9 +33,9 @@ exports.examples = [
render: function() {
return (
<ScrollView
automaticallyAdjustContentInsets={false}
onScroll={() => { console.log('onScroll!'); }}
scrollEventThrottle={200}
contentInset={{top: -50}}
style={styles.scrollView}>
{THUMBS.map(createThumbRow)}
</ScrollView>
@ -47,8 +47,8 @@ exports.examples = [
render: function() {
return (
<ScrollView
automaticallyAdjustContentInsets={false}
horizontal={true}
contentInset={{top: -50}}
style={[styles.scrollView, styles.horizontalScrollView]}>
{THUMBS.map(createThumbRow)}
</ScrollView>