Explorar el Código

fix: re-add android only chat input padding

master
Bettenbuk Zoltan hace 5 años
padre
commit
b706972acb
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      react/features/chat/components/native/ChatInputBar.js

+ 2
- 2
react/features/chat/components/native/ChatInputBar.js Ver fichero

@@ -1,7 +1,7 @@
1 1
 // @flow
2 2
 
3 3
 import React, { Component } from 'react';
4
-import { TextInput, TouchableOpacity, View } from 'react-native';
4
+import { Platform, TextInput, TouchableOpacity, View } from 'react-native';
5 5
 
6 6
 import { translate } from '../../../base/i18n';
7 7
 import { Icon, IconChatSend } from '../../../base/icons';
@@ -135,7 +135,7 @@ class ChatInputBar extends Component<Props, State> {
135 135
      */
136 136
     _onFocused(focused) {
137 137
         return () => {
138
-            this.setState({
138
+            Platform.OS === 'android' && this.setState({
139 139
                 addPadding: focused
140 140
             });
141 141
         };

Loading…
Cancelar
Guardar