Selaa lähdekoodia

fix(dialog): use height behavior in KeyboardAvoidingView

master
Jonathan Scholz 5 vuotta sitten
vanhempi
commit
547d1547bb
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1
    2
      react/features/base/dialog/components/native/BaseDialog.js

+ 1
- 2
react/features/base/dialog/components/native/BaseDialog.js Näytä tiedosto

@@ -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…
Peruuta
Tallenna