Fixes #3060
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:
parent
0fb2fb37cc
commit
2f76c8a4a9
|
@ -33,9 +33,9 @@ exports.examples = [
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<ScrollView
|
<ScrollView
|
||||||
|
automaticallyAdjustContentInsets={false}
|
||||||
onScroll={() => { console.log('onScroll!'); }}
|
onScroll={() => { console.log('onScroll!'); }}
|
||||||
scrollEventThrottle={200}
|
scrollEventThrottle={200}
|
||||||
contentInset={{top: -50}}
|
|
||||||
style={styles.scrollView}>
|
style={styles.scrollView}>
|
||||||
{THUMBS.map(createThumbRow)}
|
{THUMBS.map(createThumbRow)}
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
@ -47,8 +47,8 @@ exports.examples = [
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<ScrollView
|
<ScrollView
|
||||||
|
automaticallyAdjustContentInsets={false}
|
||||||
horizontal={true}
|
horizontal={true}
|
||||||
contentInset={{top: -50}}
|
|
||||||
style={[styles.scrollView, styles.horizontalScrollView]}>
|
style={[styles.scrollView, styles.horizontalScrollView]}>
|
||||||
{THUMBS.map(createThumbRow)}
|
{THUMBS.map(createThumbRow)}
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
Loading…
Reference in New Issue