@@ -45,7 +45,7 @@ export default class Chat extends Component {
4545 constructor ( props ) {
4646 super ( props ) ;
4747 this . state = {
48- inputViewLayout : { width :window . width , height :100 , } ,
48+ inputViewLayout : { width :window . width , height :86 , } ,
4949 menuContainerHeight : 1000 ,
5050 isDismissMenuContainer : false ,
5151 shouldExpandMenuContainer : false ,
@@ -190,7 +190,10 @@ export default class Chat extends Component {
190190 componentWillUnmount ( ) {
191191 JMessage . removeReceiveMessageListener ( this . receiveMessageCallBack )
192192 AuroraIController . removeMessageListDidLoadListener ( this . messageListDidLoadCallback )
193- UIManager . dispatchViewManagerCommand ( findNodeHandle ( this . refs [ "MessageList" ] ) , 1 , null )
193+ if ( Platform . OS === 'android' ) {
194+ UIManager . dispatchViewManagerCommand ( findNodeHandle ( this . refs [ "MessageList" ] ) , 1 , null )
195+ }
196+
194197 }
195198
196199 updateLayout ( layout ) {
@@ -376,21 +379,21 @@ export default class Chat extends Component {
376379 }
377380
378381 onSwitchToMicrophoneMode = ( ) => {
379- this . updateLayout ( { width :window . width , height :480 , } )
382+ this . updateLayout ( { width :window . width , height :338 , } )
380383 }
381384
382385 onSwitchToGalleryMode = ( ) => {
383- this . updateLayout ( { width :window . width , height :420 , } )
386+ this . updateLayout ( { width :window . width , height :338 , } )
384387 }
385388
386389 onSwitchToCameraMode = ( ) => {
387390 if ( Platform . OS == "android" ) {
388- this . updateLayout ( { width :window . width , height : 480 } )
391+ this . updateLayout ( { width :window . width , height : 338 } )
389392 this . setState ( {
390393 shouldExpandMenuContainer : true
391394 } )
392395 } else {
393- this . updateLayout ( { width :window . width , height :420 , } )
396+ this . updateLayout ( { width :window . width , height :338 , } )
394397 }
395398
396399 }
0 commit comments