'use strict'
var React = require('react-native');
var{
ListView,
View,
Text
} = React;
class WebViewExample extends React.Component{
constructor(props) {
super(props);
var dataSource = new ListView.DataSource(
{rowHasChanged: (r1, r2) => r1 !== r2});
this.state = {
dataSource: dataSource.cloneWithRows(['推送', '清除缓存','关于我们','我要反馈']),
};
}
render() {
return (
<ListView
dataSource={this.state.dataSource}
renderRow={(rowData) => <Text>{rowData}</Text>}
/>
);
}
}
React.AppRegistry.registerComponent('WebViewExample', function() { return WebViewExample});