aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-09 18:09:37 -0400
committerGitHub <noreply@github.com>2021-07-09 18:09:37 -0400
commit70a9fbcd9aab15be060694fc751cda5f26a81e11 (patch)
tree1a4b3c99cca69157a1dd44aab7d006fe9eb20250 /src/components/notifications
parent3855de87f35d630495ad74d531459e4c873a4858 (diff)
parent8ddc908e549fd47ad096d9d621ddb2a2d6218a26 (diff)
Merge pull request #499 from shravyaramesh/tma961-thumbnail-size-notifications
[TMA-961] Resize moment thumbnail on notifications
Diffstat (limited to 'src/components/notifications')
-rw-r--r--src/components/notifications/Notification.tsx11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/components/notifications/Notification.tsx b/src/components/notifications/Notification.tsx
index fd1b11ac..946f2164 100644
--- a/src/components/notifications/Notification.tsx
+++ b/src/components/notifications/Notification.tsx
@@ -314,7 +314,11 @@ const Notification: React.FC<NotificationProps> = (props) => {
<TouchableWithoutFeedback
style={styles.moment}
onPress={onNotificationTap}>
- <Image style={styles.imageFlex} source={{uri: momentURI}} />
+ <Image
+ style={styles.imageFlex}
+ source={{uri: momentURI}}
+ resizeMode={'contain'}
+ />
</TouchableWithoutFeedback>
)}
</View>
@@ -357,8 +361,9 @@ const styles = StyleSheet.create({
lineHeight: normalize(14.32),
},
moment: {
- height: normalize(42),
- width: normalize(42),
+ height: normalize(72),
+ width: normalize(40),
+ backgroundColor: 'black',
},
buttonsContainer: {
height: '80%',