mirror of
https://github.com/hanzo-io/chat.git
synced 2026-11-02 17:31:24 +00:00
41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
import { useColorScheme } from '@hooks/useColorScheme';
|
|
import { Stack } from 'expo-router';
|
|
|
|
const HomeLayout = () => {
|
|
|
|
const { colors } = useColorScheme()
|
|
|
|
return (
|
|
<Stack initialRouteName='index'>
|
|
<Stack.Screen name='index'
|
|
options={{
|
|
title: 'Home',
|
|
headerShown: false,
|
|
headerShadowVisible: false,
|
|
headerStyle: { backgroundColor: colors.primary }
|
|
}} />
|
|
<Stack.Screen name='quick-search'
|
|
options={{
|
|
presentation: 'modal',
|
|
headerStyle: { backgroundColor: colors.background }
|
|
}} />
|
|
<Stack.Screen name='create-channel'
|
|
options={{
|
|
presentation: 'modal',
|
|
headerStyle: { backgroundColor: colors.background }
|
|
}} />
|
|
<Stack.Screen name='browse-channels'
|
|
options={{
|
|
presentation: 'modal',
|
|
headerStyle: { backgroundColor: colors.background }
|
|
}} />
|
|
<Stack.Screen name='create-dm'
|
|
options={{
|
|
presentation: 'modal',
|
|
headerStyle: { backgroundColor: colors.background }
|
|
}} />
|
|
</Stack>
|
|
)
|
|
}
|
|
|
|
export default HomeLayout |