@@ -6,6 +6,7 @@ import ExpensifyWordmark from '@assets/images/expensify-wordmark.svg';
66import ImageSVG from '@components/ImageSVG' ;
77import QRCode from '@components/QRCode' ;
88import Text from '@components/Text' ;
9+ import useLocalize from '@hooks/useLocalize' ;
910import useResponsiveLayout from '@hooks/useResponsiveLayout' ;
1011import useTheme from '@hooks/useTheme' ;
1112import useThemeStyles from '@hooks/useThemeStyles' ;
@@ -34,6 +35,8 @@ function QRShare({
3435 const { windowWidth} = useWindowDimensions ( ) ;
3536 const qrCodeContainerWidth = shouldUseNarrowLayout ? windowWidth : variables . sideBarWidth ;
3637
38+ const { formatPhoneNumber} = useLocalize ( ) ;
39+
3740 const [ qrCodeSize , setQrCodeSize ] = useState < number > ( qrCodeContainerWidth - styles . ph5 . paddingHorizontal * 2 - variables . qrShareHorizontalPadding * 2 ) ;
3841 const svgRef = useRef < Svg | undefined > ( undefined ) ;
3942
@@ -84,7 +87,7 @@ function QRShare({
8487 numberOfLines = { 2 }
8588 style = { styles . qrShareTitle }
8689 >
87- { title }
90+ { formatPhoneNumber ( title ) }
8891 </ Text >
8992 ) }
9093
@@ -95,7 +98,7 @@ function QRShare({
9598 style = { [ styles . mt1 , styles . textAlignCenter ] }
9699 color = { theme . textSupporting }
97100 >
98- { subtitle }
101+ { formatPhoneNumber ( subtitle ) }
99102 </ Text >
100103 ) }
101104 </ View >
0 commit comments