From ab0336395d39ab5300e84fbccd9c347b04a08ecf Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Thu, 20 May 2021 15:18:27 -0700 Subject: Fix maximum depth bug --- src/screens/profile/CaptionScreen.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx index 4fa81f8c..cd722090 100644 --- a/src/screens/profile/CaptionScreen.tsx +++ b/src/screens/profile/CaptionScreen.tsx @@ -8,10 +8,10 @@ import { KeyboardAvoidingView, Platform, StyleSheet, + Text, + TouchableOpacity, TouchableWithoutFeedback, View, - TouchableOpacity, - Text, } from 'react-native'; import {MentionInput} from 'react-native-controlled-mentions'; import {Button} from 'react-native-elements'; @@ -29,7 +29,7 @@ import { updateProfileCompletionStage, } from '../../store/actions'; import {RootState} from '../../store/rootReducer'; -import {normalize, SCREEN_WIDTH, StatusBarHeight} from '../../utils'; +import {SCREEN_WIDTH, StatusBarHeight} from '../../utils'; import {mentionPartTypes} from '../../utils/comments'; /** @@ -57,7 +57,7 @@ const CaptionScreen: React.FC = ({route, navigation}) => { useEffect(() => { setTaggedUsers(selectedUsers ? selectedUsers : []); - }, selectedUsers); + }, [route.params]); const navigateToProfile = () => { //Since the logged In User is navigating to own profile, useXId is not required @@ -181,6 +181,10 @@ const styles = StyleSheet.create({ flex: { flex: 1, }, + tagFriendsTitle: { + color: 'white', + fontSize: 18, + }, }); export default CaptionScreen; -- cgit v1.2.3-70-g09d2