@@ -14,7 +14,10 @@ import useWindowDimensions from '@hooks/useWindowDimensions';
1414import variables from '@styles/variables' ;
1515import type { QRShareHandle , QRShareProps } from './types' ;
1616
17- function QRShare ( { url, title, subtitle, logo, svgLogo, svgLogoFillColor, logoBackgroundColor, logoRatio, logoMarginRatio} : QRShareProps , ref : ForwardedRef < QRShareHandle > ) {
17+ function QRShare (
18+ { url, title, subtitle, logo, svgLogo, svgLogoFillColor, logoBackgroundColor, logoRatio, logoMarginRatio, shouldShowExpensifyLogo = true , additionalStyles, size} : QRShareProps ,
19+ ref : ForwardedRef < QRShareHandle > ,
20+ ) {
1821 const styles = useThemeStyles ( ) ;
1922 const theme = useTheme ( ) ;
2023 const { shouldUseNarrowLayout} = useResponsiveLayout ( ) ;
@@ -39,16 +42,18 @@ function QRShare({url, title, subtitle, logo, svgLogo, svgLogoFillColor, logoBac
3942
4043 return (
4144 < View
42- style = { styles . shareCodeContainer }
45+ style = { [ styles . shareCodeContainer , additionalStyles ] }
4346 onLayout = { onLayout }
4447 >
45- < View style = { styles . expensifyQrLogo } >
46- < ImageSVG
47- contentFit = "contain"
48- src = { ExpensifyWordmark }
49- fill = { theme . QRLogo }
50- />
51- </ View >
48+ { shouldShowExpensifyLogo && (
49+ < View style = { styles . expensifyQrLogo } >
50+ < ImageSVG
51+ contentFit = "contain"
52+ src = { ExpensifyWordmark }
53+ fill = { theme . QRLogo }
54+ />
55+ </ View >
56+ ) }
5257
5358 < QRCode
5459 getRef = { ( svg ) => ( svgRef . current = svg ) }
@@ -57,19 +62,21 @@ function QRShare({url, title, subtitle, logo, svgLogo, svgLogoFillColor, logoBac
5762 svgLogoFillColor = { svgLogoFillColor }
5863 logoBackgroundColor = { logoBackgroundColor }
5964 logo = { logo }
60- size = { qrCodeSize }
65+ size = { size ?? qrCodeSize }
6166 logoRatio = { logoRatio }
6267 logoMarginRatio = { logoMarginRatio }
6368 />
6469
65- < Text
66- family = "EXP_NEW_KANSAS_MEDIUM"
67- fontSize = { variables . fontSizeXLarge }
68- numberOfLines = { 2 }
69- style = { styles . qrShareTitle }
70- >
71- { title }
72- </ Text >
70+ { ! ! title && (
71+ < Text
72+ family = "EXP_NEW_KANSAS_MEDIUM"
73+ fontSize = { variables . fontSizeXLarge }
74+ numberOfLines = { 2 }
75+ style = { styles . qrShareTitle }
76+ >
77+ { title }
78+ </ Text >
79+ ) }
7380
7481 { ! ! subtitle && (
7582 < Text
0 commit comments