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:
Keith Norman
2016-02-15 16:11:27 +00:00
committed by Konstantin Raev
parent 2c6875effa
commit 6cce770e7b
@@ -530,7 +530,7 @@ var ScrollView = React.createClass({
// AndroidSwipeRefreshLayout and use flex: 1 for the ScrollView.
return React.cloneElement(
refreshControl,
{style: this.props.style},
{style: props.style},
<ScrollViewClass {...props} style={styles.base} ref={SCROLLVIEW}>
{contentContainer}
</ScrollViewClass>