Authored by shixiang

channel 切换收起二级列表review草莓

... ... @@ -29,12 +29,19 @@ export default class CategoryList extends Component {
this.state = {
offsetx: 0,
};
this.cacheChannel='';
}
componentWillMount() {
// Animate creation
LayoutAnimation.configureNext(LayoutAnimation.Presets.spring);
}
componentWillUpdate(nextProps,nextState){
if(this.cacheChannel!=nextProps.currentChannelId){
this.setState({offsetx:0});
this.cacheChannel=nextProps.currentChannelId;
}
}
_pressLeftRow(value,rowID){
this.props.pressLeftRow(value,rowID);
if(rowID==this.props.currentCateId){
... ...