aboutsummaryrefslogtreecommitdiff
path: root/src/screens/profile/MomentCommentsScreen.tsx
diff options
context:
space:
mode:
authorAshm Walia <ashmwalia@outlook.com>2021-01-29 10:55:14 -0800
committerAshm Walia <ashmwalia@outlook.com>2021-01-29 10:55:14 -0800
commit0e86cd3c972e54cf700cca65bb2493e84056276c (patch)
tree7d655845fd577107ff68c0d146fbdb2dca45659a /src/screens/profile/MomentCommentsScreen.tsx
parent2c36dcff257de81438500eccf61a3f9a968331ce (diff)
kind of works
Diffstat (limited to 'src/screens/profile/MomentCommentsScreen.tsx')
-rw-r--r--src/screens/profile/MomentCommentsScreen.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/screens/profile/MomentCommentsScreen.tsx b/src/screens/profile/MomentCommentsScreen.tsx
index 58422f0f..5c3b8579 100644
--- a/src/screens/profile/MomentCommentsScreen.tsx
+++ b/src/screens/profile/MomentCommentsScreen.tsx
@@ -28,7 +28,7 @@ interface MomentCommentsScreenProps {
const MomentCommentsScreen: React.FC<MomentCommentsScreenProps> = ({route}) => {
const navigation = useNavigation();
- const {moment_id, screenType} = route.params;
+ const {moment_id, screenType, comment_id} = route.params;
//Receives comment length from child CommentsContainer
const [commentsLength, setCommentsLength] = useState<number>(0);
@@ -55,6 +55,7 @@ const MomentCommentsScreen: React.FC<MomentCommentsScreenProps> = ({route}) => {
<View style={styles.body}>
<CommentsContainer
objectId={moment_id}
+ commentId={comment_id}
screenType={screenType}
setCommentsLength={setCommentsLength}
newCommentsAvailable={newCommentsAvailable}
@@ -107,7 +108,7 @@ const styles = StyleSheet.create({
fontWeight: '400',
},
body: {
- width: SCREEN_WIDTH,
+ width: SCREEN_WIDTH * 0.9,
height: SCREEN_HEIGHT * 0.8,
paddingTop: '3%',
},