mattermost-mobile-upstream/app/components/chrome/home_tab_stack_layout.tsx
Matthew Birtch 23a5cd8fb6 Add iPhone platform UI foundation with NativeTabs and liquid glass chrome.
Enable iOS 26 chrome on phone only: nested home stacks so tabs persist into channel/thread, floating compose and sheet layout, glass header actions, and scroll-edge patches to stop inverted post-list washout.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 23:17:44 -04:00

23 lines
604 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {Stack} from 'expo-router';
import React, {useMemo} from 'react';
import {useTheme} from '@context/theme';
import {getHomeTabHeaderOptions} from '@hooks/navigation_header';
type Props = {
title: string;
};
export default function HomeTabStackLayout({title}: Props) {
const theme = useTheme();
const screenOptions = useMemo(() => ({
...getHomeTabHeaderOptions(theme),
title,
}), [theme, title]);
return <Stack screenOptions={screenOptions}/>;
}