fix: re-add android only chat input padding
This commit is contained in:
parent
5574221044
commit
b706972acb
|
@ -1,7 +1,7 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { TextInput, TouchableOpacity, View } from 'react-native';
|
import { Platform, TextInput, TouchableOpacity, View } from 'react-native';
|
||||||
|
|
||||||
import { translate } from '../../../base/i18n';
|
import { translate } from '../../../base/i18n';
|
||||||
import { Icon, IconChatSend } from '../../../base/icons';
|
import { Icon, IconChatSend } from '../../../base/icons';
|
||||||
|
@ -135,7 +135,7 @@ class ChatInputBar extends Component<Props, State> {
|
||||||
*/
|
*/
|
||||||
_onFocused(focused) {
|
_onFocused(focused) {
|
||||||
return () => {
|
return () => {
|
||||||
this.setState({
|
Platform.OS === 'android' && this.setState({
|
||||||
addPadding: focused
|
addPadding: focused
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue