aboutsummaryrefslogtreecommitdiff
path: root/src/screens/chat/ChatScreen.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/screens/chat/ChatScreen.tsx')
-rw-r--r--src/screens/chat/ChatScreen.tsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/screens/chat/ChatScreen.tsx b/src/screens/chat/ChatScreen.tsx
index 957b1189..02330527 100644
--- a/src/screens/chat/ChatScreen.tsx
+++ b/src/screens/chat/ChatScreen.tsx
@@ -11,7 +11,7 @@ import {
OverlayProvider,
} from 'stream-chat-react-native';
import {ChatContext} from '../../App';
-import ChatHeader from '../../components/messages/ChatHeader';
+import {ChatInput, ChatHeader} from '../../components';
import {TAGG_LIGHT_BLUE} from '../../constants';
import {MainStackParams} from '../../routes';
import {ScreenType} from '../../types';
@@ -38,7 +38,9 @@ const ChatScreen: React.FC<ChatScreenProps> = () => {
};
return (
- <OverlayProvider bottomInset={80} topInset={insets.top + HeaderHeight}>
+ <OverlayProvider
+ bottomInset={isIPhoneX() ? 80 : 50}
+ topInset={insets.top + HeaderHeight}>
<SafeAreaView
style={[
styles.container,
@@ -56,7 +58,7 @@ const ChatScreen: React.FC<ChatScreenProps> = () => {
deleteMessage,
]}>
<MessageList onThreadSelect={() => {}} />
- <MessageInput />
+ <MessageInput Input={ChatInput} />
</Channel>
</Chat>
</SafeAreaView>