Hide keyboard when bringing the app to the foreground (#1279)
This commit is contained in:
parent
e68374d757
commit
9b55868ced
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue