mirror of
https://github.com/expo/Reactive2015.git
synced 2026-11-22 07:59:24 -10:00
30 lines
638 B
JavaScript
30 lines
638 B
JavaScript
const React = require('react-native');
|
|
const MultiSelectListItem = require('./MultiSelectListItem');
|
|
const theme = require('./theme');
|
|
const {
|
|
Component,
|
|
ListView,
|
|
View,
|
|
} = React;
|
|
|
|
module.exports = class Schedule extends Component {
|
|
shouldComponentUpdate() {
|
|
return false;
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<View style={{ flex: 1, }}>
|
|
<ListView
|
|
dataSource={this.props.data}
|
|
renderRow={(rowData, sectionID, rowID) =>
|
|
<MultiSelectListItem
|
|
{...rowData}
|
|
index={rowID}
|
|
onPress={this.props.onChange} />
|
|
} />
|
|
</View>
|
|
);
|
|
}
|
|
};
|