From a3bae91f19400373dc396fc60d5f29d3b4506d23 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Fri, 7 May 2021 16:26:35 -0700 Subject: cleaning --- src/components/common/TaggPrompt.tsx | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'src/components/common/TaggPrompt.tsx') diff --git a/src/components/common/TaggPrompt.tsx b/src/components/common/TaggPrompt.tsx index 236501ff..0bf25c3c 100644 --- a/src/components/common/TaggPrompt.tsx +++ b/src/components/common/TaggPrompt.tsx @@ -1,5 +1,11 @@ import React from 'react'; -import {StyleSheet, Text, TouchableOpacity} from 'react-native'; +import { + ImageStyle, + StyleProp, + StyleSheet, + Text, + TouchableOpacity, +} from 'react-native'; import {Image, View} from 'react-native-animatable'; import CloseIcon from '../../assets/ionicons/close-outline.svg'; import {normalize, SCREEN_HEIGHT} from '../../utils'; @@ -9,7 +15,8 @@ type TaggPromptProps = { messageHeader: string; messageBody: string | Element; logoType: 'plus' | 'tagg' | 'invite_friends' | 'private_accounts' | 'chat'; - logoLink: string | null; + logoLink?: string; + externalStyles?: Record>; hideCloseButton?: boolean; noPadding?: boolean; onClose: () => void; @@ -20,6 +27,7 @@ const TaggPrompt: React.FC = ({ messageBody, logoType, logoLink, + externalStyles, hideCloseButton, noPadding, onClose, @@ -51,13 +59,14 @@ const TaggPrompt: React.FC = ({ return ( - {logoLink - ? - navigation.navigate(logoLink)}> - - - : } + logoLink && navigation.navigate(logoLink)}> + + {messageHeader} {messageBody} {!hideCloseButton && ( @@ -92,10 +101,6 @@ const styles = StyleSheet.create({ width: normalize(40), height: normalize(40), }, - chat: { - width: normalize(350), - height: normalize(70), - }, header: { color: 'black', fontSize: normalize(16), -- cgit v1.2.3-70-g09d2