aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/profile/ProfileBody.tsx9
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,