MM-21634 Fix keyboard glitch when returning to channel screen from the code screen (#3824)

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
Mattermost Build 2020-01-20 16:53:34 +01:00 committed by Elias Nahum
parent 4d83724092
commit e8398cb880

View file

@ -6,6 +6,7 @@ import React from 'react';
import {intlShape} from 'react-intl';
import {
Clipboard,
Keyboard,
StyleSheet,
Text,
View,
@ -66,7 +67,10 @@ export default class MarkdownCodeBlock extends React.PureComponent {
});
}
goToScreen(screen, title, passProps);
Keyboard.dismiss();
requestAnimationFrame(() => {
goToScreen(screen, title, passProps);
});
});
handleLongPress = async () => {