forked from Ivasoft/mattermost-mobile
MM-21634 Fix keyboard glitch when returning to channel screen from the code screen (#3813)
This commit is contained in:
committed by
Miguel Alatzar
parent
24820bd34d
commit
08e748bcae
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user