Authored by 于良

bug fix: http://jira.yoho.cn:8888/browse/YH-2658 review by 阿瑟

@@ -107,18 +107,17 @@ class UserNavBar extends React.Component { @@ -107,18 +107,17 @@ class UserNavBar extends React.Component {
107 } 107 }
108 108
109 componentWillUnmount() { 109 componentWillUnmount() {
110 - 110 + this.props.scrollValue.removeListener(this._listener);
111 } 111 }
112 112
113 setAnimationValue({ value, }) { 113 setAnimationValue({ value, }) {
114 - if (value <= 2) { 114 + if (value >= 0 && value <= 2) {
115 this.headerView.setNativeProps({ 115 this.headerView.setNativeProps({
116 style: { 116 style: {
117 backgroundColor: this.headerColor(value), 117 backgroundColor: this.headerColor(value),
118 }, 118 },
119 }); 119 });
120 120
121 - value = value + 0.1;  
122 value = value > 1 ? 1 : value; 121 value = value > 1 ? 1 : value;
123 this.image.setNativeProps({ 122 this.image.setNativeProps({
124 style: { 123 style: {