Fix keyboard on room view on Android
This commit is contained in:
parent
b672bffb90
commit
e3a4d0853c
|
@ -56,7 +56,7 @@ export default class LoginView extends React.Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<KeyboardAvoidingView style={styles.view} behavior='padding'>
|
<KeyboardAvoidingView style={styles.view}>
|
||||||
<TextInput
|
<TextInput
|
||||||
style={styles.input}
|
style={styles.input}
|
||||||
onChangeText={username => this.setState({ username })}
|
onChangeText={username => this.setState({ username })}
|
||||||
|
|
|
@ -147,7 +147,7 @@ export default class RoomView extends React.Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<KeyboardAvoidingView style={styles.container} behavior='padding' keyboardVerticalOffset={64}>
|
<KeyboardAvoidingView style={styles.container}>
|
||||||
<FlatList
|
<FlatList
|
||||||
ref={ref => this.listView = ref}
|
ref={ref => this.listView = ref}
|
||||||
style={styles.list}
|
style={styles.list}
|
||||||
|
|
Loading…
Reference in New Issue