import * as React from 'react'; import { type StyleProp, type ViewStyle } from 'react-native'; /** * A COLUMN-SCOPED, Contacts-style immersive header that collapses on scroll. * * Why this is JS on native (not a scene-level native UINavigationBar): inside a * SplitView/TripleSplitView DETAIL pane the content is rendered by the JS * `DetailPaneScenes` fallback (an embedded native nav stack at partial width * does not present pushed scenes on the new architecture). A scene-level native * `NavigationBar` there would span the FULL window width and bleed across the * master column. This header is a plain View subtree, so its colored/gradient * band is confined to the detail column and both columns read independently * (iPad Mail/Contacts). It still uses a REAL native blur for the compact bar via * the injected `blurComponent` (expo-blur's `UIBlurEffect`), so the list content * genuinely blurs as it scrolls under the bar. * * The collapse is driven by a native `Animated.Value` fed from the scroll view's * onScroll (useNativeDriver), mirroring the web variant's progress math: a soft * vertical gradient hero (avatar/name/actions) scrolls away while an always-on * translucent blur bar keeps the compact title. * * The `.web.tsx` sibling renders the same look with `backdrop-filter: blur()`. */ export type ScopedCollapsingHeaderProps = { /** Compact-bar title (the entity name). */ title: string; /** Soft vertical gradient band, top → bottom (>= 2 stops). */ gradientColors: readonly string[]; /** Foreground color for the hero (name/avatar ring). Default white. */ tintColor?: string; /** * Color for the COLLAPSED compact-bar title. The compact bar is translucent * over the (light) list content once the colored hero has scrolled away, so * this usually differs from `tintColor` (e.g. the entity tint or the label * color). Defaults to `tintColor`. */ compactTitleColor?: string; /** Hero height, EXCLUDING the top safe-area inset. Default 240. */ expandedHeight?: number; /** Compact bar height, EXCLUDING the top safe-area inset. Default 48. */ collapsedHeight?: number; /** Top safe-area inset (pass from useSafeAreaInsets). Default 0. */ topInset?: number; /** The immersive hero: large avatar, name, round action buttons. */ renderHero: () => React.ReactNode; /** Optional leading control in the compact bar (e.g. a back chip). */ headerLeft?: React.ReactNode; /** * Injected native blur surface for the compact bar (e.g. expo-blur `BlurView`). * Receives an absolute-fill style. Falls back to a translucent View so the * library never hard-depends on expo-blur. */ blurComponent?: (style: StyleProp) => React.ReactNode; children: React.ReactNode; contentContainerStyle?: StyleProp; }; export default function ScopedCollapsingHeader({ title, gradientColors, tintColor, compactTitleColor, expandedHeight, collapsedHeight, topInset, renderHero, headerLeft, blurComponent, children, contentContainerStyle, }: ScopedCollapsingHeaderProps): React.JSX.Element; //# sourceMappingURL=ScopedCollapsingHeader.d.ts.map