Просмотр исходного кода

fix: re-add android only chat input padding

j8
Bettenbuk Zoltan 5 лет назад
Родитель
Сommit
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
         };

Загрузка…
Отмена
Сохранить