mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-10 17:22:45 +08:00
Updates from Tuesday, March 3rd
- [ReactNative] Fix OSS Projects | Spencer Ahrens <sahrens@fb.com> - [react-packager] check-in node_modules and update tests | Amjad Masad <amasad@fb.com> - [react-packager] Cleanup package.json | Amjad Masad <amasad@fb.com> - [react-packager] Implement bundle minification | Amjad Masad <amasad@fb.com> - [react-packager] Add dev option to CLI | James Ide | Amjad Masad <amasad@fb.com> - [react-packager] Add uglify-js library | Amjad Masad <amasad@fb.com> - [f8] Make map zoomable on double-tap | Alex Kotliarskyi <frantic@fb.com>
This commit is contained in:
@@ -9,7 +9,6 @@ var React = require('react-native');
|
||||
var {
|
||||
Image,
|
||||
ListView,
|
||||
ListViewDataSource,
|
||||
TouchableHighlight,
|
||||
StyleSheet,
|
||||
Text,
|
||||
@@ -25,7 +24,7 @@ var ListViewSimpleExample = React.createClass({
|
||||
},
|
||||
|
||||
getInitialState: function() {
|
||||
var ds = new ListViewDataSource({rowHasChanged: (r1, r2) => r1 !== r2});
|
||||
var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
|
||||
return {
|
||||
dataSource: ds.cloneWithRows(this._genRows({})),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user