Authored by 孙凯

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

... ... @@ -81,20 +81,23 @@ export default class Detail extends Component {
}
_keyboardWillShow(e){
let endH = e.endCoordinates.height;
let duration = e.duration;
Animated.timing(
    this.state.viewMarginTop,
    {
      toValue: -e.startCoordinates.height,
      duration: 250,
      toValue: -endH,
      duration: duration,
    }
  ).start();
}
_keyboardWillHide(e){
let duration = e.duration;
Animated.timing(
    this.state.viewMarginTop,
    {
      toValue: 0,
      duration: 250,
      duration: duration,
    }
  ).start();
}
... ...