From 6862e278129341b7989dba937c7252f2f5f84cd5 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Fri, 9 Apr 2021 20:43:09 -0400 Subject: cleaned up code --- src/screens/chat/ChatScreen.tsx | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/screens/chat/ChatScreen.tsx b/src/screens/chat/ChatScreen.tsx index 8281ca85..a7dd3717 100644 --- a/src/screens/chat/ChatScreen.tsx +++ b/src/screens/chat/ChatScreen.tsx @@ -2,6 +2,7 @@ import {useBottomTabBarHeight} from '@react-navigation/bottom-tabs'; import {StackNavigationProp} from '@react-navigation/stack'; import React, {Fragment, useContext} from 'react'; import {StyleSheet, View} from 'react-native'; +import {TouchableOpacity} from 'react-native-gesture-handler'; import {SafeAreaView} from 'react-native-safe-area-context'; import { Channel, @@ -9,9 +10,11 @@ import { MessageInput, MessageList, OverlayProvider, + useMessageInputContext, } from 'stream-chat-react-native'; import {ChatContext} from '../../App'; import UpArrowIcon from '../../assets/icons/up_arrow.svg'; +import {ChatInput} from '../../components'; import ChatHeader from '../../components/messages/ChatHeader'; import {TAGG_LIGHT_BLUE} from '../../constants'; import {MainStackParams} from '../../routes'; @@ -37,13 +40,6 @@ const ChatScreen: React.FC = () => { }, }; - const SendButton = () => ( - - - - ); - // const insets = useSafeAreaInsets(); - return ( = () => { ]}> - + = () => { messageActions={({copyMessage, deleteMessage}) => [ copyMessage, deleteMessage, - ]} - Attachment={Fragment}> + ]}> {}} /> - {/* */} - + -- cgit v1.2.3-70-g09d2