From 95dc38929c0c1cda3c9b07721f823c983f2359fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Bigio?= Date: Mon, 20 Jul 2015 12:32:14 -0700 Subject: [PATCH] [rn] revert D2201593 --- Libraries/CustomComponents/ListView/ListView.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Libraries/CustomComponents/ListView/ListView.js b/Libraries/CustomComponents/ListView/ListView.js index 8aaffa16b..93ba01f34 100644 --- a/Libraries/CustomComponents/ListView/ListView.js +++ b/Libraries/CustomComponents/ListView/ListView.js @@ -29,6 +29,7 @@ var ListViewDataSource = require('ListViewDataSource'); var React = require('React'); var RCTUIManager = require('NativeModules').UIManager; +var RCTScrollViewManager = require('NativeModules').ScrollViewManager; var ScrollView = require('ScrollView'); var ScrollResponder = require('ScrollResponder'); var StaticRenderer = require('StaticRenderer'); @@ -415,6 +416,14 @@ var ListView = React.createClass({ logError, this._setScrollVisibleLength ); + + // RCTScrollViewManager.calculateChildFrames is not available on + // every platform + RCTScrollViewManager && RCTScrollViewManager.calculateChildFrames && + RCTScrollViewManager.calculateChildFrames( + React.findNodeHandle(scrollComponent), + this._updateChildFrames, + ); }, _setScrollContentLength: function(left, top, width, height) {