@@ -50,6 +50,7 @@ import type * as OnyxTypes from '@src/types/onyx';
50
50
import { isEmptyObject } from '@src/types/utils/EmptyObject' ;
51
51
import isLoadingOnyxValue from '@src/types/utils/isLoadingOnyxValue' ;
52
52
import HeaderView from './HeaderView' ;
53
+ import ReportActionsListItemRenderer from './report/ReportActionsListItemRenderer' ;
53
54
import ReportActionsView from './report/ReportActionsView' ;
54
55
import ReportFooter from './report/ReportFooter' ;
55
56
import type { ActionListContextType , ReactionListRef , ScrollPosition } from './ReportScreenContext' ;
@@ -726,6 +727,7 @@ function ReportScreen({route, currentReportID = '', navigation}: ReportScreenPro
726
727
// After creating the task report then navigating to task detail we don't have any report actions and the last read time is empty so We need to update the initial last read time when opening the task report detail.
727
728
Report . readNewestAction ( report . reportID ) ;
728
729
} , [ report ] ) ;
730
+ const firstReportAction = reportActions [ 0 ] ;
729
731
730
732
return (
731
733
< ActionListContext . Provider value = { actionListValue } >
@@ -794,7 +796,28 @@ function ReportScreen({route, currentReportID = '', navigation}: ReportScreenPro
794
796
{ /* Note: The ReportActionsSkeletonView should be allowed to mount even if the initial report actions are not loaded.
795
797
If we prevent rendering the report while they are loading then
796
798
we'll unnecessarily unmount the ReportActionsView which will clear the new marker lines initial state. */ }
797
- { shouldShowSkeleton && < ReportActionsSkeletonView /> }
799
+ { shouldShowSkeleton && (
800
+ < >
801
+ < ReportActionsSkeletonView />
802
+ { ! ! firstReportAction && (
803
+ < ReportActionsListItemRenderer
804
+ reportAction = { firstReportAction }
805
+ reportActions = { reportActions }
806
+ parentReportAction = { parentReportAction }
807
+ parentReportActionForTransactionThread = { undefined }
808
+ transactionThreadReport = { undefined }
809
+ index = { 0 }
810
+ report = { report }
811
+ displayAsGroup = { false }
812
+ shouldHideThreadDividerLine
813
+ shouldDisplayNewMarker = { false }
814
+ shouldDisplayReplyDivider = { false }
815
+ isFirstVisibleReportAction
816
+ shouldUseThreadDividerLine = { false }
817
+ />
818
+ ) }
819
+ </ >
820
+ ) }
798
821
799
822
{ isCurrentReportLoadedFromOnyx ? (
800
823
< ReportFooter
0 commit comments