From 9b55868ced5dfd581ee6924c188abcb7aac9a7c1 Mon Sep 17 00:00:00 2001 From: enahum Date: Thu, 7 Dec 2017 12:18:43 -0300 Subject: [PATCH] Hide keyboard when bringing the app to the foreground (#1279) --- app/mattermost.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/mattermost.js b/app/mattermost.js index 076e7d270..086c41a70 100644 --- a/app/mattermost.js +++ b/app/mattermost.js @@ -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