aboutsummaryrefslogtreecommitdiff
path: root/src/screens/chat/ChatScreen.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-12 16:04:32 -0400
committerIvan Chen <ivan@tagg.id>2021-04-12 16:04:32 -0400
commit007c2e728c152aa2b038d3e30ce637960189cf25 (patch)
tree096e31287b9a9f49eaa195316c93e595b67f595a /src/screens/chat/ChatScreen.tsx
parent82d220552fc69246ee324e87b2254f8127c3a31d (diff)
styled outline input submit button
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>