...
|
...
|
@@ -49,23 +49,18 @@ export default class ChannelFliter extends React.Component { |
|
|
}
|
|
|
|
|
|
_renderRow(rowData, sectionID, rowID) {
|
|
|
|
|
|
let colorStyle = rowID == this.state.selectedIndex ? {color: '#444444',fontFamily: 'HelveticaNeue',fontSize: 17} : {color: '#b0b0b0',fontFamily: 'HelveticaNeue-Bold',fontSize: 14,};
|
|
|
let colorStyle = rowID == this.props.selectID ? {color: '#444444',fontFamily: 'HelveticaNeue',fontSize: 17} : {color: '#b0b0b0',fontFamily: 'HelveticaNeue-Bold',fontSize: 14,};
|
|
|
|
|
|
return (
|
|
|
<TouchableOpacity onPress={() => {
|
|
|
let filters = this.state.filters;
|
|
|
let filter = this.state.filters[rowID];
|
|
|
if (this.state.selectedIndex == rowID) {
|
|
|
if (this.props.selectID == rowID) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
filter.isSelect = !filter.isSelect;
|
|
|
filters[rowID] = filter;
|
|
|
this.setState({
|
|
|
selectedIndex: rowID,
|
|
|
filters,
|
|
|
});
|
|
|
this.props.onChannelPressFliter && this.props.onChannelPressFliter(rowID);
|
|
|
}}>
|
|
|
<View key={'row' + rowID} style={styles.rowContainer}>
|
...
|
...
|
|