From 6181c6986eee0ad1c99d06968c762183b21e4086 Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Mon, 14 Aug 2017 11:15:37 -0300 Subject: [PATCH] Fix room resize with keyboard --- app/lib/rocketchat.js | 2 +- app/views/login.js | 2 +- app/views/room.js | 7 ++++--- app/views/serverNew.js | 1 - 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/lib/rocketchat.js b/app/lib/rocketchat.js index 442bbed62..6c1c6bba5 100644 --- a/app/lib/rocketchat.js +++ b/app/lib/rocketchat.js @@ -158,7 +158,7 @@ const RocketChat = { }); }, - loginWithPassword({username, password, code}, callback) { + loginWithPassword({ username, password, code }, callback) { let params = {}; const state = reduxStore.getState(); diff --git a/app/views/login.js b/app/views/login.js index 89ebb85fa..413bf3d86 100644 --- a/app/views/login.js +++ b/app/views/login.js @@ -80,7 +80,7 @@ export default class LoginView extends React.Component { username: this.state.username, password: this.state.password, code: this.state.code - } + }; RocketChat.loginWithPassword(credentials, (error) => { if (error) { diff --git a/app/views/room.js b/app/views/room.js index 60d5b3497..e696d9f28 100644 --- a/app/views/room.js +++ b/app/views/room.js @@ -11,7 +11,8 @@ import RocketChat from '../lib/rocketchat'; import debounce from '../utils/throttle'; import Message from '../components/Message'; 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 styles = StyleSheet.create({ container: { @@ -198,7 +199,7 @@ export default class RoomView extends React.Component { // keyExtractor={item => item._id} // return ( - + {this.renderBanner()} this.renderItem({ item })} /> {this.renderFooter()} - + ); } } diff --git a/app/views/serverNew.js b/app/views/serverNew.js index 6f0978d8d..95cd9d456 100644 --- a/app/views/serverNew.js +++ b/app/views/serverNew.js @@ -174,7 +174,6 @@ export default class NewServerView extends React.Component { }); reject(url); }); - } else { this.setState({ validInstance: undefined