|
|
@@ -7,7 +7,8 @@ import {
|
|
|
Platform,
|
|
|
TouchableHighlight,
|
|
|
AppState,
|
|
|
- AppStateStatus
|
|
|
+ AppStateStatus,
|
|
|
+ Keyboard
|
|
|
} from 'react-native';
|
|
|
import { AvatarWithInitials, HorizontalTabView, Input, WarningModal } from 'src/components';
|
|
|
import { NAVIGATION_PAGES } from 'src/types';
|
|
|
@@ -247,6 +248,10 @@ const MessagesScreen = () => {
|
|
|
};
|
|
|
|
|
|
useFocusEffect(() => {
|
|
|
+ const isKeyboardVisible = Keyboard.isVisible();
|
|
|
+ if (isKeyboardVisible) {
|
|
|
+ Keyboard.dismiss();
|
|
|
+ }
|
|
|
navigation.getParent()?.setOptions({
|
|
|
tabBarStyle: {
|
|
|
display: 'flex',
|