Skip to content

Commit

Permalink
fix(EN): Modal.prompt keyboard avoid view
Browse files Browse the repository at this point in the history
  • Loading branch information
paranoidjk authored and yinzhu.lyz committed Jul 24, 2017
1 parent 41bf3cf commit 1a7b16b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/modal/PromptContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* tslint:disable:jsx-no-multiline-js */
import React from 'react';
import { View, Text, TextInput } from 'react-native';
import { View, Text, TextInput, KeyboardAvoidingView } from 'react-native';
import Modal from './Modal';
import promptStyles, { IPromptStyle } from './style/prompt';

Expand Down Expand Up @@ -118,7 +118,7 @@ export default class PropmptContainer extends React.Component<PropmptContainerPr
footer={footer}
onAnimationEnd={onAnimationEnd}
>
<View>
<KeyboardAvoidingView behavior="padding">
{message && message.length && <Text style={styles.message}>{message}</Text>}
<View style={styles.inputGroup}>
{ type !== 'secure-text' && (
Expand Down Expand Up @@ -148,7 +148,8 @@ export default class PropmptContainer extends React.Component<PropmptContainerPr
)
}
</View>
</View>
<View style={{ height: 60 }} />
</KeyboardAvoidingView>
</Modal>
);
}
Expand Down

0 comments on commit 1a7b16b

Please sign in to comment.