From 98797177abd93d01a206fe3f4c5f31143fdebf08 Mon Sep 17 00:00:00 2001 From: Keith Norman Date: Fri, 5 Feb 2016 16:24:48 -0800 Subject: [PATCH] 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 --- Libraries/Components/ScrollView/ScrollView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index bd3f9b99e..7c769a05f 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -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}, {contentContainer}