Fix KeyboardAvoidView for android (#2226)
This commit is contained in:
parent
cb98efc6da
commit
2e5f7fd60c
3 changed files with 15 additions and 2 deletions
|
|
@ -457,8 +457,9 @@ export default class EmojiPicker extends PureComponent {
|
|||
<SafeAreaView excludeHeader={true}>
|
||||
<KeyboardAvoidingView
|
||||
behavior='padding'
|
||||
style={{flex: 1}}
|
||||
style={styles.flex}
|
||||
keyboardVerticalOffset={keyboardOffset}
|
||||
enabled={Platform.OS === 'ios'}
|
||||
>
|
||||
<View style={styles.searchBar}>
|
||||
<SearchBar
|
||||
|
|
@ -496,6 +497,9 @@ export default class EmojiPicker extends PureComponent {
|
|||
|
||||
const getStyleSheetFromTheme = makeStyleSheetFromTheme((theme) => {
|
||||
return {
|
||||
flex: {
|
||||
flex: 1,
|
||||
},
|
||||
bottomContent: {
|
||||
backgroundColor: changeOpacity(theme.centerChannelColor, 0.1),
|
||||
borderTopColor: changeOpacity(theme.centerChannelColor, 0.3),
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ import {
|
|||
Keyboard,
|
||||
KeyboardAvoidingView,
|
||||
Platform,
|
||||
StyleSheet,
|
||||
TouchableWithoutFeedback,
|
||||
View,
|
||||
} from 'react-native';
|
||||
|
|
@ -130,8 +131,9 @@ export default class Mfa extends PureComponent {
|
|||
return (
|
||||
<KeyboardAvoidingView
|
||||
behavior='padding'
|
||||
style={{flex: 1}}
|
||||
style={style.flex}
|
||||
keyboardVerticalOffset={5}
|
||||
enabled={Platform.OS === 'ios'}
|
||||
>
|
||||
<StatusBar/>
|
||||
<TouchableWithoutFeedback onPress={this.blur}>
|
||||
|
|
@ -168,3 +170,9 @@ export default class Mfa extends PureComponent {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
const style = StyleSheet.create({
|
||||
flex: {
|
||||
flex: 1,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -443,6 +443,7 @@ export default class SelectServer extends PureComponent {
|
|||
behavior='padding'
|
||||
style={style.container}
|
||||
keyboardVerticalOffset={0}
|
||||
enabled={Platform.OS === 'ios'}
|
||||
>
|
||||
<StatusBar barStyle={statusStyle}/>
|
||||
<TouchableWithoutFeedback onPress={this.blur}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue