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

This commit is contained in:
Elias Nahum
2020-01-20 12:50:32 -03:00
committed by Miguel Alatzar
parent 24820bd34d
commit 08e748bcae

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 () => {