Authored by 孙凯

修改 第三方键盘的bug review by zhanglixia

@@ -81,20 +81,23 @@ export default class Detail extends Component { @@ -81,20 +81,23 @@ export default class Detail extends Component {
81 } 81 }
82 82
83 _keyboardWillShow(e){ 83 _keyboardWillShow(e){
  84 + let endH = e.endCoordinates.height;
  85 + let duration = e.duration;
84 Animated.timing( 86 Animated.timing(
85     this.state.viewMarginTop, 87     this.state.viewMarginTop,
86     { 88     {
87 -       toValue: -e.startCoordinates.height,  
88 -       duration: 250, 89 +       toValue: -endH,
  90 +       duration: duration,
89     } 91     }
90   ).start(); 92   ).start();
91 } 93 }
92 _keyboardWillHide(e){ 94 _keyboardWillHide(e){
  95 + let duration = e.duration;
93 Animated.timing( 96 Animated.timing(
94     this.state.viewMarginTop, 97     this.state.viewMarginTop,
95     { 98     {
96       toValue: 0, 99       toValue: 0,
97 -       duration: 250, 100 +       duration: duration,
98     } 101     }
99   ).start(); 102   ).start();
100 } 103 }