zhangmengjie 5 years ago
parent
commit
b39a9fcec6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/components/PersonalInfoDialog.js

+ 2 - 2
pages/components/PersonalInfoDialog.js

@@ -107,7 +107,7 @@ export default class PersonalInfoDialog extends Component<Props> {
 
   _keyboardDidShow = e => {
     this.setState({
-      keyBoardHeight: e.endCoordinates.height
+      keyBoardHeight: 10
     });
   };
   _keyboardDidHide = () => {
@@ -138,7 +138,7 @@ export default class PersonalInfoDialog extends Component<Props> {
           <View
             style={{
               width: "100%",
-              height: "20%",
+              height: 150,
               backgroundColor: "white",
               bottom: this.state.keyBoardHeight
             }}