make splat viewer the app's only view

Root route renders SplatViewer directly; removed template tabs,
home/explore screens and modal.
This commit is contained in:
Lars Nolden
2026-08-11 18:11:30 +02:00
parent b463af35d0
commit f1b9ee7a4a
7 changed files with 4 additions and 306 deletions
+4 -15
View File
@@ -1,24 +1,13 @@
import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native';
import { DarkTheme, ThemeProvider } from '@react-navigation/native';
import { Stack } from 'expo-router';
import { StatusBar } from 'expo-status-bar';
import 'react-native-reanimated';
import { useColorScheme } from '@/hooks/use-color-scheme';
export const unstable_settings = {
anchor: '(tabs)',
};
export default function RootLayout() {
const colorScheme = useColorScheme();
return (
<ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
<Stack>
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
<Stack.Screen name="modal" options={{ presentation: 'modal', title: 'Modal' }} />
</Stack>
<StatusBar style="auto" />
<ThemeProvider value={DarkTheme}>
<Stack screenOptions={{ headerShown: false }} />
<StatusBar style="light" />
</ThemeProvider>
);
}