Hide keyboard when bringing the app to the foreground (#1279)

This commit is contained in:
enahum 2017-12-07 12:18:43 -03:00 committed by GitHub
parent e68374d757
commit 9b55868ced
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@ import {
Alert,
AppState,
InteractionManager,
Keyboard,
NativeModules,
Platform
} from 'react-native';
@ -194,6 +195,7 @@ export default class Mattermost {
}
} else if (isActive) {
this.inBackgroundSince = null;
Keyboard.dismiss();
}
} catch (error) {
// do nothing