[ReactNative] Remove ListViewDataSource from require('react-native')

This commit is contained in:
Christopher Chedeau 2015-03-18 19:17:24 -07:00
parent 319ea3242a
commit 48f7399cfc
2 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,6 @@ var {
CameraRoll,
Image,
ListView,
ListViewDataSource,
StyleSheet,
View,
} = React;
@ -73,7 +72,7 @@ var CameraRollView = React.createClass({
},
getInitialState: function() {
var ds = new ListViewDataSource({rowHasChanged: this._rowHasChanged});
var ds = new ListView.DataSource({rowHasChanged: this._rowHasChanged});
return {
assets: [],
@ -90,7 +89,7 @@ var CameraRollView = React.createClass({
* component to re-render its assets.
*/
rendererChanged: function() {
var ds = new ListViewDataSource({rowHasChanged: this._rowHasChanged});
var ds = new ListView.DataSource({rowHasChanged: this._rowHasChanged});
this.state.dataSource = ds.cloneWithRows(
groupByEveryN(this.state.assets, this.props.imagesPerRow)
);

View File

@ -13,7 +13,6 @@ var ReactNative = {
DatePickerIOS: require('DatePickerIOS'),
Image: require('Image'),
ListView: require('ListView'),
ListViewDataSource: require('ListViewDataSource'),
MapView: require('MapView'),
NavigatorIOS: require('NavigatorIOS'),
PickerIOS: require('PickerIOS'),