From 29f26479f63ee0c02677635b99453eba4d21fea8 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Tue, 13 Apr 2021 15:56:17 -0700 Subject: tagg indicator and main container alignment --- src/screens/chat/ChatScreen.tsx | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) (limited to 'src') diff --git a/src/screens/chat/ChatScreen.tsx b/src/screens/chat/ChatScreen.tsx index ae95cd62..c88e8690 100644 --- a/src/screens/chat/ChatScreen.tsx +++ b/src/screens/chat/ChatScreen.tsx @@ -16,7 +16,7 @@ import {ChatContext} from '../../App'; import {ChatHeader, ChatInput, TabsGradient} from '../../components'; import {MainStackParams} from '../../routes'; import {ScreenType} from '../../types'; -import {HeaderHeight, isIPhoneX} from '../../utils'; +import {HeaderHeight, isIPhoneX, SCREEN_WIDTH} from '../../utils'; type ChatScreenNavigationProp = StackNavigationProp; interface ChatScreenProps { @@ -35,6 +35,8 @@ const ChatScreen: React.FC = () => { messageList: { container: { backgroundColor: 'white', + width: SCREEN_WIDTH * 0.9, + alignSelf: 'center', }, }, messageInput: { @@ -55,22 +57,17 @@ const ChatScreen: React.FC = () => { container: { height: '100%', top: -8, - right: -25, zIndex: 1, }, }, container: { paddingTop: 8, + flexDirection: 'row', }, - card: { + content: { container: { - backgroundColor: 'lightgreen', - borderWidth: 2, - borderColor: 'black', + left: -25, }, - }, - content: { - container: {}, containerInner: { backgroundColor: '#E4F0F2', borderColor: 'transparent', @@ -156,17 +153,6 @@ const styles = StyleSheet.create({ justifyContent: 'center', alignItems: 'center', }, - typingIndicatorContainer: { - backgroundColor: '#E4F0F2', - width: 88, - height: 32, - borderRadius: 10, - marginBottom: 10, - marginLeft: 10, - flexDirection: 'row', - justifyContent: 'center', - alignItems: 'center', - }, }); export default ChatScreen; -- cgit v1.2.3-70-g09d2