aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-05-20 15:18:27 -0700
committerShravya Ramesh <shravs1208@gmail.com>2021-05-20 17:58:16 -0700
commitab0336395d39ab5300e84fbccd9c347b04a08ecf (patch)
treeb860969d2c9145ffd422c5663cc08ef756be8991
parent3318d424aeca35aba5256e020544db50b6746334 (diff)
Fix maximum depth bug
-rw-r--r--src/screens/profile/CaptionScreen.tsx12
1 files changed, 8 insertions, 4 deletions
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<CaptionScreenProps> = ({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;