diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-04-08 12:32:54 -0700 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-04-09 10:14:07 -0700 |
commit | 5972aeb33d8a37895e4af8890b99514c9ec0e51c (patch) | |
tree | ddd02b402f2672cb827d6518dfb7109059fd1b2b | |
parent | 123a728707f7cbc527c486a8b306716962e4bd47 (diff) |
better
-rw-r--r-- | src/components/profile/ProfileBody.tsx | 9 |
1 files changed, 6 insertions, 3 deletions
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<ProfileBodyProps> = ({ } }; + const onPressMessage = () => { + // TODO: Add navigation to ChatScreen + console.log('Navigate to the individual chat screen'); + }; + return ( <View onLayout={onLayout} style={styles.container}> <Text style={styles.username}>{`@${username}`}</Text> @@ -116,9 +121,7 @@ const ProfileBody: React.FC<ProfileBodyProps> = ({ {canMessage() && ( <BasicButton title={'Message'} - onPress={() => { - console.log('Navigate to the individual chat screen'); - }} + onPress={onPressMessage} externalStyles={{ container: { width: SCREEN_WIDTH * 0.42, |