Fix keyboard on room view on Android

This commit is contained in:
Diego Sampaio 2017-08-07 09:07:29 -03:00
parent b672bffb90
commit e3a4d0853c
No known key found for this signature in database
GPG Key ID: E060152B30502562
2 changed files with 2 additions and 2 deletions

View File

@ -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 })}

View File

@ -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}