From 5972aeb33d8a37895e4af8890b99514c9ec0e51c Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Thu, 8 Apr 2021 12:32:54 -0700 Subject: better --- src/components/profile/ProfileBody.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/components/profile/ProfileBody.tsx b/src/components/profile/ProfileBody.tsx index 3785cb16..9b19b866 100644 --- a/src/components/profile/ProfileBody.tsx +++ b/src/components/profile/ProfileBody.tsx @@ -78,6 +78,11 @@ const ProfileBody: React.FC = ({ } }; + const onPressMessage = () => { + // TODO: Add navigation to ChatScreen + console.log('Navigate to the individual chat screen'); + }; + return ( {`@${username}`} @@ -116,9 +121,7 @@ const ProfileBody: React.FC = ({ {canMessage() && ( { - console.log('Navigate to the individual chat screen'); - }} + onPress={onPressMessage} externalStyles={{ container: { width: SCREEN_WIDTH * 0.42, -- cgit v1.2.3-70-g09d2