@@ -30,6 +30,7 @@ import {
3030} from "react-native" ;
3131import { useSafeAreaInsets } from "react-native-safe-area-context" ;
3232import { useNativeColumnLayoutMetrics } from "../../native/native-layout-metrics" ;
33+ import { NativeInspectorContent } from "../../native/NativeInspectorContent" ;
3334
3435import { AppText as Text } from "../../components/ui/AppText" ;
3536import { SymbolView } from "../../components/ui/AppSymbol" ;
@@ -40,7 +41,6 @@ import { environmentCatalog } from "../../connection/catalog";
4041import { useEnvironmentPresentation } from "../../state/presentation" ;
4142import { useAtomCommand } from "../../state/use-atom-command" ;
4243import { useUniwindTheme } from "../../lib/useUniwindTheme" ;
43- import { IOS_NAV_BAR_HEIGHT } from "../../lib/layoutMetrics" ;
4444import { useThreadDraftForThread } from "../../state/use-thread-composer-state" ;
4545import { EnvironmentConnectionNotice } from "../connection/EnvironmentConnectionNotice" ;
4646import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider" ;
@@ -307,7 +307,6 @@ function ReviewFileNavigator({
307307 onSelectFile,
308308 ref,
309309} : ReviewFileNavigatorProps ) {
310- const insets = useSafeAreaInsets ( ) ;
311310 const theme = useUniwindTheme ( ) ;
312311 const sheetColor = theme [ "--color-sheet" ] ;
313312 const foregroundColor = theme [ "--color-foreground" ] ;
@@ -359,15 +358,8 @@ function ReviewFileNavigator({
359358 data = { files }
360359 extraData = { selectedFileId }
361360 keyExtractor = { ( file ) => file . id }
362- contentContainerStyle = { {
363- paddingHorizontal : 8 ,
364- paddingBottom : 8 ,
365-
366- paddingTop : Platform . OS === "ios" ? insets . top + IOS_NAV_BAR_HEIGHT + 8 : 8 ,
367- } }
368- scrollIndicatorInsets = {
369- Platform . OS === "ios" ? { top : insets . top + IOS_NAV_BAR_HEIGHT } : undefined
370- }
361+ contentInsetAdjustmentBehavior = { Platform . OS === "ios" ? "automatic" : "never" }
362+ contentContainerStyle = { { paddingHorizontal : 8 , paddingVertical : 8 } }
371363 renderItem = { renderFile }
372364 />
373365 ) ;
@@ -384,7 +376,7 @@ function ReviewFileNavigator({
384376 scrollEdgeEffects = { headerScrollEdgeEffects }
385377 style = { { backgroundColor : sheetColor , flex : 1 } }
386378 >
387- { fileList }
379+ < NativeInspectorContent > { fileList } </ NativeInspectorContent >
388380 < ScreenStackHeaderConfig
389381 backgroundColor = "rgba(0,0,0,0)"
390382 color = { foregroundColor }
0 commit comments