mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-14 07:00:20 +00:00
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>
23 lines
604 B
TypeScript
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}/>;
|
|
}
|