...
|
...
|
@@ -31,6 +31,7 @@ export default class ProductCategoryList extends React.Component { |
|
|
}
|
|
|
|
|
|
_pressLeftRow(rowData) {
|
|
|
this.refs.subCategoryList && this.refs.subCategoryList.scrollTo({x: 0, y: 0, animated: false});
|
|
|
this.props.onPressProductFilterLeftItem(rowData);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -68,7 +69,6 @@ export default class ProductCategoryList extends React.Component { |
|
|
rightRenderRow(rowData, sectionID, rowID, highlightRow) {
|
|
|
|
|
|
let colorStyle = rowData.get('isSelect') ? {backgroundColor: '#DBDBDB'} : {backgroundColor: '#f4f4f4'};
|
|
|
|
|
|
return (
|
|
|
<TouchableOpacity onPress={() => this._pressRightRow(rowData.toJS())}>
|
|
|
<View style={[styles.rightRow, colorStyle]}>
|
...
|
...
|
@@ -103,6 +103,7 @@ export default class ProductCategoryList extends React.Component { |
|
|
scrollsToTop={false}
|
|
|
/>
|
|
|
<ListView
|
|
|
ref='subCategoryList'
|
|
|
style={styles.rightContentContainer}
|
|
|
dataSource={this.dataSourceR.cloneWithRows(subList.toArray())}
|
|
|
renderRow={this.rightRenderRow}
|
...
|
...
|
|