import * as React from 'react'; import { type StyleProp, type ViewStyle } from 'react-native'; import { type SelectionHistory } from './selectionHistory'; export type SplitViewProps = { children: any; /** * Rendered in the detail pane when nothing is selected yet. */ detailPlaceholder?: React.ReactNode; /** * Below this width the SplitView renders only the master (children) and * pushes go to the main navigator, exactly like without a SplitView. */ breakingPointWidth?: number; masterWidth?: number; masterStyle?: StyleProp; detailStyle?: StyleProp; /** * When set, the master column mounts its OWN native navigation bar * (iPad-Mail style) scoped to the master column width. The master is a * single, non-pushing scene, so — unlike the detail pane — an embedded * native stack at partial width is safe here: it never pushes, so the * new-architecture partial-width push limitation does not apply. * * Native only (iOS/Android). On web this is ignored; render your own header. */ masterTitle?: string; /** Large-title (native collapse on scroll). Defaults to true. */ masterLargeTitle?: boolean; /** * Native bar content for the master's scoped navigation bar — pass a * ``/`` of ``s (SF Symbols / systemItems). * Native only; ignored when `masterTitle` is unset or on web. */ masterActions?: React.ReactNode; /** * Opt in to making the detail SELECTION part of navigation state. When set to * a query-param name (e.g. `"detail"`), selecting a detail from the master: * * - reflects the selection in the URL of the MAIN navigator as a query param * (`…/overview?detail=post/1`), so it is deep-linkable and restored on a * cold reload, * - keeps it on the MAIN navigator's single history timeline. Peer picks * replace the current entry by default; `selectionHistory="push"` opts into * browser/native Back and Forward stepping through previous selections. * * The detail pane becomes a pure mirror of that URL: it re-derives itself * whenever the selection query changes (row tap, Back, Forward, deep link). * * Unset (default) keeps the original history-less behaviour exactly: the pane * is a private selection with no URL/history footprint. Fully backward * compatible. */ selectionParam?: string; /** * How peer selections from the master column affect navigation history. * * `replace` (default) keeps the current selection deep-linkable while Back * leaves the split instead of replaying previously selected rows. `push` * opts into Back/Forward navigation through peer selections. * * Only applies to wide, URL-backed (`selectionParam`) splits. Narrow layouts * keep their normal full-screen push behaviour, and drill-downs from inside * the detail pane always push. */ selectionHistory?: SelectionHistory; }; /** * Master/detail split view (iPad Mail style) for wide screens. * * The master (children) keeps rendering in its own scene; every push made * from inside it lands in the detail pane on the right, which is backed by a * second, history-less StateNavigator rendering a real native stack on * Android/iOS and a NavigationMotion stack on web. Pushes from within the * detail pane stack deeper into the pane; a push from the master replaces the * current selection instead of stacking on top of it. * * On narrow screens children render as-is and navigation behaves exactly as * it does today (full-screen pushes on the main stack). */ export default function SplitView({ children, detailPlaceholder, breakingPointWidth, masterWidth, masterStyle, detailStyle, masterTitle, masterLargeTitle, masterActions, selectionParam, selectionHistory, }: SplitViewProps): React.JSX.Element; //# sourceMappingURL=SplitView.d.ts.map