fix(dialog): use height behavior in KeyboardAvoidingView

This commit is contained in:
Jonathan Scholz 2020-04-21 15:07:00 +02:00 committed by Saúl Ibarra Corretgé
parent 39853e048b
commit 547d1547bb
1 changed files with 1 additions and 2 deletions

View File

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