aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/NotificationPrompts.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-03-20 13:33:43 -0400
committerGitHub <noreply@github.com>2021-03-20 13:33:43 -0400
commitdc182f12756f9f719cad416316165b72723b6624 (patch)
tree39db0020e34875b739e16fbe670163438fe6a078 /src/components/notifications/NotificationPrompts.tsx
parent1c410aa6d32f0e9221ce718008b8923d4d1b5514 (diff)
parenta4a7b8a80207c0a921464f7c64bc53821e47ce13 (diff)
Merge pull request #318 from shravyaramesh/tma719-invite-prompt
[TMA-719] Invite friends notification prompt
Diffstat (limited to 'src/components/notifications/NotificationPrompts.tsx')
-rw-r--r--src/components/notifications/NotificationPrompts.tsx58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/components/notifications/NotificationPrompts.tsx b/src/components/notifications/NotificationPrompts.tsx
new file mode 100644
index 00000000..03502b27
--- /dev/null
+++ b/src/components/notifications/NotificationPrompts.tsx
@@ -0,0 +1,58 @@
+import React, {Fragment} from 'react';
+import {Image, StyleSheet, Text} from 'react-native';
+import {TaggPrompt} from '../common';
+
+export const InviteFriendsPrompt: React.FC = () => {
+ return (
+ <TaggPrompt
+ messageHeader={'Invite Friends To Tagg!'}
+ messageBody={
+ 'A new feature that lets you invite your friends to Tagg. \nClick on yourfriends list to do so!'
+ }
+ logoType={'invite_friends'}
+ hideCloseButton={true}
+ noPadding={true}
+ onClose={() => {}}
+ />
+ );
+};
+
+interface SPPromptNotificationProps {
+ showSPNotifyPopUp: boolean;
+}
+
+export const SPPromptNotification: React.FC<SPPromptNotificationProps> = ({
+ showSPNotifyPopUp,
+}) => {
+ return showSPNotifyPopUp ? (
+ <TaggPrompt
+ messageHeader={'New Suggested People Page!'}
+ messageBody={
+ <>
+ <Text>
+ A new page where you can discover new profiles. Just press the new{' '}
+ </Text>
+ <Image
+ style={styles.icon}
+ source={require('../../assets/navigationIcons/home.png')}
+ />
+ <Text> button on the tab bar to check it out!</Text>
+ </>
+ }
+ logoType={'tagg'}
+ hideCloseButton={true}
+ noPadding={true}
+ onClose={() => {}}
+ />
+ ) : (
+ <Fragment />
+ );
+};
+
+const styles = StyleSheet.create({
+ icon: {
+ width: 20,
+ height: 20,
+ tintColor: 'grey',
+ },
+});