[rn] revert D2201593

This commit is contained in:
Martín Bigio 2015-07-20 12:32:14 -07:00
parent 0d91b93aba
commit 95dc38929c
1 changed files with 9 additions and 0 deletions

View File

@ -29,6 +29,7 @@
var ListViewDataSource = require('ListViewDataSource'); var ListViewDataSource = require('ListViewDataSource');
var React = require('React'); var React = require('React');
var RCTUIManager = require('NativeModules').UIManager; var RCTUIManager = require('NativeModules').UIManager;
var RCTScrollViewManager = require('NativeModules').ScrollViewManager;
var ScrollView = require('ScrollView'); var ScrollView = require('ScrollView');
var ScrollResponder = require('ScrollResponder'); var ScrollResponder = require('ScrollResponder');
var StaticRenderer = require('StaticRenderer'); var StaticRenderer = require('StaticRenderer');
@ -415,6 +416,14 @@ var ListView = React.createClass({
logError, logError,
this._setScrollVisibleLength 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) { _setScrollContentLength: function(left, top, width, height) {