[ReactNative] Remove ListViewDataSource from require('react-native')
This commit is contained in:
parent
319ea3242a
commit
48f7399cfc
|
@ -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)
|
||||
);
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue