aboutsummaryrefslogtreecommitdiff
path: root/src/screens/profile/CaptionScreen.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-06-24 17:41:45 -0400
committerIvan Chen <ivan@tagg.id>2021-06-24 17:41:45 -0400
commitb184179a8bff25ad018d02abc31acadc7b3f6a62 (patch)
treeefd94448ee76860156d7622a61e6eb8785c10f10 /src/screens/profile/CaptionScreen.tsx
parent981051448fee6197544383e535fea7a72827d41d (diff)
parent53bdc94cf0491e348b7d4ad61e51ce1844423773 (diff)
Merge branch 'master' into tma948-video-playback
# Conflicts: # ios/Podfile.lock # package.json # src/components/moments/Moment.tsx # src/routes/main/MainStackNavigator.tsx # src/screens/moments/TagFriendsScreen.tsx # src/screens/profile/CaptionScreen.tsx # yarn.lock
Diffstat (limited to 'src/screens/profile/CaptionScreen.tsx')
-rw-r--r--src/screens/profile/CaptionScreen.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx
index d53570cb..364b81a3 100644
--- a/src/screens/profile/CaptionScreen.tsx
+++ b/src/screens/profile/CaptionScreen.tsx
@@ -13,7 +13,7 @@ import {
TouchableWithoutFeedback,
View,
} from 'react-native';
-import {MentionInput} from 'react-native-controlled-mentions';
+import {MentionInputControlled} from '../../components';
import {Button, normalize} from 'react-native-elements';
import Video from 'react-native-video';
import {useDispatch, useSelector} from 'react-redux';
@@ -237,16 +237,16 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => {
<Image
style={styles.media}
source={{uri: mediaUri}}
- resizeMode={'cover'}
+ resizeMode={'contain'}
/>
)}
- <MentionInput
+ <MentionInputControlled
containerStyle={styles.text}
placeholder="Write something....."
placeholderTextColor="gray"
value={caption}
onChange={setCaption}
- partTypes={mentionPartTypes('blue')}
+ partTypes={mentionPartTypes('blue', 'caption')}
/>
<TouchableOpacity
onPress={() =>