From faecd66faf9d8c106259860da1817d6059938ccd Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Thu, 21 Jan 2021 02:45:51 -0800 Subject: switched from modal to full screen view --- src/screens/profile/MomentCommentsScreen.tsx | 130 +++++++++++++-------------- 1 file changed, 62 insertions(+), 68 deletions(-) (limited to 'src/screens') diff --git a/src/screens/profile/MomentCommentsScreen.tsx b/src/screens/profile/MomentCommentsScreen.tsx index ebe4da28..3008728e 100644 --- a/src/screens/profile/MomentCommentsScreen.tsx +++ b/src/screens/profile/MomentCommentsScreen.tsx @@ -1,17 +1,19 @@ import * as React from 'react'; -import {RouteProp, useNavigation} from '@react-navigation/native'; -import {ProfileStackParams} from '../../routes/main'; -import {CenteredView, CommentTile} from '../../components'; -import {CommentType} from '../../types'; -import {ScrollView, StyleSheet, Text, View} from 'react-native'; -import {SCREEN_WIDTH} from '../../utils/screenDimensions'; -import {Button} from 'react-native-elements'; -import {AddComment} from '../../components/'; -import {useEffect} from 'react'; +import { RouteProp, useNavigation } from '@react-navigation/native'; +import { ProfileStackParams } from '../../routes/main'; +import { CommentTile, TabsGradient } from '../../components'; +import { CommentType } from '../../types'; +import { StyleSheet, Text, View } from 'react-native'; +import { SCREEN_HEIGHT, SCREEN_WIDTH } from '../../utils/screenDimensions'; +import { Button } from 'react-native-elements'; +import { AddComment } from '../../components/'; +import { useEffect } from 'react'; import AsyncStorage from '@react-native-community/async-storage'; -import {getMomentComments} from '../..//services'; -import {useDispatch} from 'react-redux'; -import {logout} from '../../store/actions'; +import { getMomentComments } from '../..//services'; +import { useDispatch } from 'react-redux'; +import { logout } from '../../store/actions'; +import { SafeAreaView } from 'react-native-safe-area-context'; +import Animated from 'react-native-reanimated'; /** * Comments Screen for an image uploaded @@ -28,9 +30,9 @@ interface MomentCommentsScreenProps { route: MomentCommentsScreenRouteProps; } -const MomentCommentsScreen: React.FC = ({route}) => { +const MomentCommentsScreen: React.FC = ({ route }) => { const navigation = useNavigation(); - const {moment_id, screenType} = route.params; + const { moment_id, screenType } = route.params; const [commentsList, setCommentsList] = React.useState([]); const [newCommentsAvailable, setNewCommentsAvailable] = React.useState(true); const dispatch = useDispatch(); @@ -51,13 +53,13 @@ const MomentCommentsScreen: React.FC = ({route}) => { }, [dispatch, moment_id, newCommentsAvailable]); return ( - - + +