From 56ed4e12accdcf0ab2d84765f459f97e59350a7f Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Thu, 30 May 2024 18:28:19 +0530 Subject: [PATCH] handle text overflow on native --- src/components/ReportActionItem/TripDetailsView.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/ReportActionItem/TripDetailsView.tsx b/src/components/ReportActionItem/TripDetailsView.tsx index 863531bc7e0a..23bfce42c469 100644 --- a/src/components/ReportActionItem/TripDetailsView.tsx +++ b/src/components/ReportActionItem/TripDetailsView.tsx @@ -6,6 +6,7 @@ import OfflineWithFeedback from '@components/OfflineWithFeedback'; import SpacerView from '@components/SpacerView'; import Text from '@components/Text'; import useLocalize from '@hooks/useLocalize'; +import useResponsiveLayout from '@hooks/useResponsiveLayout'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; import DateUtils from '@libs/DateUtils'; @@ -31,6 +32,7 @@ type ReservationViewProps = { function ReservationView({reservation}: ReservationViewProps) { const theme = useTheme(); const styles = useThemeStyles(); + const {shouldUseNarrowLayout} = useResponsiveLayout(); const reservationIcon = TripReservationUtils.getTripReservationIcon(reservation.type); @@ -79,14 +81,14 @@ function ReservationView({reservation}: ReservationViewProps) { return ( - {formatAirportInfo(reservation.start)} + {formatAirportInfo(reservation.start)} - {formatAirportInfo(reservation.end)} + {formatAirportInfo(reservation.end)} {bottomDescription && {bottomDescription}}