Authored by shixiang

修改动画类型

review 草莓
... ... @@ -33,9 +33,9 @@ export default class CategoryList extends Component {
}
componentWillMount() {
// Animate creation
LayoutAnimation.configureNext(LayoutAnimation.Presets.spring);
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
}
componentWillUpdate(nextProps,nextState){
if(this.cacheChannel!=nextProps.currentChannelId){
this.setState({offsetx:0});
... ... @@ -45,7 +45,7 @@ export default class CategoryList extends Component {
_pressLeftRow(value,rowID){
this.props.pressLeftRow(value,rowID);
if(rowID==this.props.currentCateId){
LayoutAnimation.configureNext(LayoutAnimation.Presets.spring);
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
if(this.state.offsetx<0){
this.setState({offsetx:0});
}else{
... ...