fix issue that breaks scroll views w/ RefreshControl on Android
Summary: Fixes the issue I mentioned here https://github.com/facebook/react-native/pull/5623#issuecomment-180583142 Closes https://github.com/facebook/react-native/pull/5784 Reviewed By: svcscm Differential Revision: D2908112 Pulled By: nicklockwood fb-gh-sync-id: 8a2f053de3f7dc19807ee21dd969c53a57b71345
This commit is contained in:
parent
64d56f34b7
commit
98797177ab
|
@ -530,7 +530,7 @@ var ScrollView = React.createClass({
|
||||||
// AndroidSwipeRefreshLayout and use flex: 1 for the ScrollView.
|
// AndroidSwipeRefreshLayout and use flex: 1 for the ScrollView.
|
||||||
return React.cloneElement(
|
return React.cloneElement(
|
||||||
refreshControl,
|
refreshControl,
|
||||||
{style: this.props.style},
|
{style: props.style},
|
||||||
<ScrollViewClass {...props} style={styles.base} ref={SCROLLVIEW}>
|
<ScrollViewClass {...props} style={styles.base} ref={SCROLLVIEW}>
|
||||||
{contentContainer}
|
{contentContainer}
|
||||||
</ScrollViewClass>
|
</ScrollViewClass>
|
||||||
|
|
Loading…
Reference in New Issue