浏览代码

fix: re-add android only chat input padding

master
Bettenbuk Zoltan 5 年前
父节点
当前提交
b706972acb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      react/features/chat/components/native/ChatInputBar.js

+ 2
- 2
react/features/chat/components/native/ChatInputBar.js 查看文件

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React, { Component } from 'react';
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
 import { translate } from '../../../base/i18n';
6
 import { translate } from '../../../base/i18n';
7
 import { Icon, IconChatSend } from '../../../base/icons';
7
 import { Icon, IconChatSend } from '../../../base/icons';
135
      */
135
      */
136
     _onFocused(focused) {
136
     _onFocused(focused) {
137
         return () => {
137
         return () => {
138
-            this.setState({
138
+            Platform.OS === 'android' && this.setState({
139
                 addPadding: focused
139
                 addPadding: focused
140
             });
140
             });
141
         };
141
         };

正在加载...
取消
保存