From 4b82673484a02f570f40e77d77748b887e0d41a1 Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Thu, 16 Jul 2015 16:07:19 -0700 Subject: [PATCH] revert [React Native] Fix scroll view sticky headers --- Libraries/Components/ScrollView/ScrollView.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index 2625c20b7..f01cce58a 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -17,7 +17,6 @@ var PointPropType = require('PointPropType'); var RCTScrollView = require('NativeModules').UIManager.RCTScrollView; var RCTScrollViewConsts = RCTScrollView.Constants; var React = require('React'); -var ReactChildren = require('ReactChildren'); var ReactNativeViewAttributes = require('ReactNativeViewAttributes'); var RCTUIManager = require('NativeModules').UIManager; var ScrollResponder = require('ScrollResponder'); @@ -278,24 +277,13 @@ var ScrollView = React.createClass({ } } - var children = this.props.children; - if (this.props.stickyHeaderIndices) { - children = ReactChildren.map(children, (child) => { - if (child) { - return {child}; - } else { - return child; - } - }); - } - var contentContainer = - {children} + {this.props.children} ; var alwaysBounceHorizontal =