aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/Notification.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-02-01 18:25:55 -0500
committerIvan Chen <ivan@tagg.id>2021-02-01 18:25:55 -0500
commitf8a3e57ab04af5658cb48aaa3fded31126bdaa8b (patch)
tree4fe1dbbcd37c18d06f855bcd4cd03fd761062931 /src/components/notifications/Notification.tsx
parent3e6e2834aead9ee8e7f16fabcaf89e7f2a4263c2 (diff)
gradient
Diffstat (limited to 'src/components/notifications/Notification.tsx')
-rw-r--r--src/components/notifications/Notification.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/notifications/Notification.tsx b/src/components/notifications/Notification.tsx
index fc3119ed..28a5d912 100644
--- a/src/components/notifications/Notification.tsx
+++ b/src/components/notifications/Notification.tsx
@@ -2,7 +2,9 @@ import {useNavigation} from '@react-navigation/native';
import React, {useEffect, useState} from 'react';
import {Alert, Image, StyleSheet, Text, View} from 'react-native';
import {TouchableWithoutFeedback} from 'react-native-gesture-handler';
+import LinearGradient from 'react-native-linear-gradient';
import {useDispatch, useStore} from 'react-redux';
+import {BACKGROUND_GRADIENT_MAP} from '../../constants';
import {ERROR_DELETED_OBJECT} from '../../constants/strings';
import {
loadImageFromURL,
@@ -199,7 +201,7 @@ const Notification: React.FC<NotificationProps> = (props) => {
};
return (
- <>
+ <LinearGradient colors={BACKGROUND_GRADIENT_MAP[2]} useAngle angle={90}>
<TouchableWithoutFeedback
style={[styles.container, {backgroundColor}]}
onPress={onNotificationTap}>
@@ -232,7 +234,7 @@ const Notification: React.FC<NotificationProps> = (props) => {
<Image style={styles.moment} source={{uri: momentURI}} />
)}
</TouchableWithoutFeedback>
- </>
+ </LinearGradient>
);
};