import { HeaderHeightContext } from "@react-navigation/elements"; import { useState, type ReactNode } from "react"; import { View, type ColorValue } from "react-native"; import { SafeAreaProvider, SafeAreaView } from "react-native-safe-area-context"; import { NativeColumnLayoutMetricsContext } from "./native-layout-metrics"; import type { NativeLayoutMetrics } from "../lib/reserved-regions"; import { NativeLayoutObserver } from "./NativeLayoutObserver"; export function NativeColumnContent(props: { readonly children: ReactNode; readonly primary?: boolean; readonly insetHorizontally?: boolean; readonly backgroundColor?: ColorValue; }) { const [metrics, setMetrics] = useState(null); return ( {/* Observe the inset body. UIKit can reserve other columns in its safe area. */} {props.children} ); }