Fix room resize with keyboard
This commit is contained in:
parent
838f4b0fe0
commit
6181c6986e
|
@ -158,7 +158,7 @@ const RocketChat = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
loginWithPassword({username, password, code}, callback) {
|
loginWithPassword({ username, password, code }, callback) {
|
||||||
let params = {};
|
let params = {};
|
||||||
const state = reduxStore.getState();
|
const state = reduxStore.getState();
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ export default class LoginView extends React.Component {
|
||||||
username: this.state.username,
|
username: this.state.username,
|
||||||
password: this.state.password,
|
password: this.state.password,
|
||||||
code: this.state.code
|
code: this.state.code
|
||||||
}
|
};
|
||||||
|
|
||||||
RocketChat.loginWithPassword(credentials, (error) => {
|
RocketChat.loginWithPassword(credentials, (error) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
|
|
|
@ -11,7 +11,8 @@ import RocketChat from '../lib/rocketchat';
|
||||||
import debounce from '../utils/throttle';
|
import debounce from '../utils/throttle';
|
||||||
import Message from '../components/Message';
|
import Message from '../components/Message';
|
||||||
import MessageBox from '../components/MessageBox';
|
import MessageBox from '../components/MessageBox';
|
||||||
// import KeyboardView from '../components/KeyboardView';
|
import KeyboardView from '../components/KeyboardView';
|
||||||
|
|
||||||
const ds = new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2 });
|
const ds = new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2 });
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
container: {
|
container: {
|
||||||
|
@ -198,7 +199,7 @@ export default class RoomView extends React.Component {
|
||||||
// keyExtractor={item => item._id}
|
// keyExtractor={item => item._id}
|
||||||
//
|
//
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<KeyboardView style={styles.container} keyboardVerticalOffset={64}>
|
||||||
{this.renderBanner()}
|
{this.renderBanner()}
|
||||||
<ListView
|
<ListView
|
||||||
enableEmptySections
|
enableEmptySections
|
||||||
|
@ -210,7 +211,7 @@ export default class RoomView extends React.Component {
|
||||||
renderRow={item => this.renderItem({ item })}
|
renderRow={item => this.renderItem({ item })}
|
||||||
/>
|
/>
|
||||||
{this.renderFooter()}
|
{this.renderFooter()}
|
||||||
</View>
|
</KeyboardView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,7 +174,6 @@ export default class NewServerView extends React.Component {
|
||||||
});
|
});
|
||||||
reject(url);
|
reject(url);
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.setState({
|
this.setState({
|
||||||
validInstance: undefined
|
validInstance: undefined
|
||||||
|
|
Loading…
Reference in New Issue