Authored by 盖剑秋

Fix UI bug on post detail. reviewed by redding.

... ... @@ -84,14 +84,16 @@ export default class SubjectPost extends Component {
Keyboard.addListener('keyboardWillChangeFrame',(event)=>{
let kbdHeight = height - event.endCoordinates.screenY;
if (this.boardInView) {
if (kbdHeight>0) {
this.setState({imageState: 0});
if (kbdHeight>0) {
this.boardInView = false;
this.setState({imageState: 0});
} else {
if (this.boardInView) {
if (kbdHeight>0) {
this.setState({imageState: 0});
}
return;
}
return;
}
if (kbdHeight == 0) {
this.currentReplyState = ReplyState.replyLZ;
this.setState({replyState: ReplyState.replyNone});
}
... ...