瀏覽代碼

fix(dialog): use height behavior in KeyboardAvoidingView

master
Jonathan Scholz 5 年之前
父節點
當前提交
547d1547bb
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      react/features/base/dialog/components/native/BaseDialog.js

+ 1
- 2
react/features/base/dialog/components/native/BaseDialog.js 查看文件

@@ -17,7 +17,6 @@ import AbstractDialog, {
17 17
     type State
18 18
 } from '../AbstractDialog';
19 19
 import { brandedDialog as styles } from './styles';
20
-import { Platform } from '../../../react';
21 20
 
22 21
 export type Props = AbstractProps & {
23 22
 
@@ -56,7 +55,7 @@ class BaseDialog<P: Props, S: State> extends AbstractDialog<P, S> {
56 55
         return (
57 56
             <TouchableWithoutFeedback>
58 57
                 <KeyboardAvoidingView
59
-                    behavior = { Platform.OS === 'ios' ? 'padding' : 'height' }
58
+                    behavior = 'height'
60 59
                     style = { [
61 60
                         styles.overlay,
62 61
                         style

Loading…
取消
儲存