MM-26490 Dismiss keyboard when closing more dms / channels / create channel (#4538)

This commit is contained in:
Elias Nahum 2020-07-07 17:37:52 -04:00 committed by GitHub
parent 320ec7029c
commit 6c9dc8a917
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View file

@ -110,6 +110,7 @@ export default class CreateChannel extends PureComponent {
}
close = (goBack = false) => {
Keyboard.dismiss();
if (goBack) {
popTopScreen();
} else {

View file

@ -4,7 +4,7 @@
import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
import {intlShape} from 'react-intl';
import {Platform, View, Text} from 'react-native';
import {Keyboard, Platform, View, Text} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import {Navigation} from 'react-native-navigation';
@ -162,6 +162,7 @@ export default class MoreChannels extends PureComponent {
};
close = () => {
Keyboard.dismiss();
dismissModal();
};

View file

@ -4,7 +4,7 @@
import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
import {intlShape} from 'react-intl';
import {Platform, View} from 'react-native';
import {Keyboard, Platform, View} from 'react-native';
import {Navigation} from 'react-native-navigation';
import {debounce} from '@mm-redux/actions/helpers';
@ -114,6 +114,7 @@ export default class MoreDirectMessages extends PureComponent {
}
close = () => {
Keyboard.dismiss();
dismissModal();
};