88 * @format
99 */
1010
11+ import type { ViewStyleProp } from '../../StyleSheet/StyleSheet' ;
12+
1113import ScrollView from '../../Components/ScrollView/ScrollView' ;
14+ import View from '../../Components/View/View' ;
1215import StyleSheet from '../../StyleSheet/StyleSheet' ;
1316import LogBoxLog from '../Data/LogBoxLog' ;
1417import LogBoxInspectorCodeFrame from './LogBoxInspectorCodeFrame' ;
@@ -30,6 +33,7 @@ const headerTitleMap = {
3033export default function LogBoxInspectorBody ( props : {
3134 log : LogBoxLog ,
3235 onRetry : ( ) => void ,
36+ safeAreaPadding ?: ?ViewStyleProp ,
3337} ) : React . Node {
3438 const [ collapsed , setCollapsed ] = useState ( true ) ;
3539
@@ -50,14 +54,20 @@ export default function LogBoxInspectorBody(props: {
5054 message = { props . log . message }
5155 level = { props . log . level }
5256 title = { headerTitle }
57+ style = { props . safeAreaPadding }
5358 />
5459 < ScrollView style = { styles . scrollBody } >
55- < LogBoxInspectorCodeFrame
56- codeFrame = { props . log . codeFrame }
57- componentCodeFrame = { props . log . componentCodeFrame }
58- />
59- < LogBoxInspectorReactFrames log = { props . log } />
60- < LogBoxInspectorStackFrames log = { props . log } onRetry = { props . onRetry } />
60+ < View style = { props . safeAreaPadding } >
61+ < LogBoxInspectorCodeFrame
62+ codeFrame = { props . log . codeFrame }
63+ componentCodeFrame = { props . log . componentCodeFrame }
64+ />
65+ < LogBoxInspectorReactFrames log = { props . log } />
66+ < LogBoxInspectorStackFrames
67+ log = { props . log }
68+ onRetry = { props . onRetry }
69+ />
70+ </ View >
6171 </ ScrollView >
6272 </ >
6373 ) ;
@@ -70,13 +80,16 @@ export default function LogBoxInspectorBody(props: {
7080 message = { props . log . message }
7181 level = { props . log . level }
7282 title = { headerTitle }
83+ style = { props . safeAreaPadding }
7384 />
74- < LogBoxInspectorCodeFrame
75- codeFrame = { props . log . codeFrame }
76- componentCodeFrame = { props . log . componentCodeFrame }
77- />
78- < LogBoxInspectorReactFrames log = { props . log } />
79- < LogBoxInspectorStackFrames log = { props . log } onRetry = { props . onRetry } />
85+ < View style = { props . safeAreaPadding } >
86+ < LogBoxInspectorCodeFrame
87+ codeFrame = { props . log . codeFrame }
88+ componentCodeFrame = { props . log . componentCodeFrame }
89+ />
90+ < LogBoxInspectorReactFrames log = { props . log } />
91+ < LogBoxInspectorStackFrames log = { props . log } onRetry = { props . onRetry } />
92+ </ View >
8093 </ ScrollView >
8194 ) ;
8295}
0 commit comments