Skip to content

Commit

Permalink
[rn] revert D2201593
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbigio committed Jul 20, 2015
1 parent 0d91b93 commit 95dc389
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Libraries/CustomComponents/ListView/ListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 95dc389

Please sign in to comment.