feat(app): React Navigation shell and i18next setup

- React Navigation 7: conditional root stack (Auth | Main | Repository |
  Settings | Accounts modal), 5 bottom tabs with nested native stacks
- typed param lists, deep-link config, header options, root-nav helper
- providers: gesture handler, safe area, theme, persisted query client, app lock
- i18next + expo-localization (en/nl), persisted language preference
This commit is contained in:
JustZoe101 committed 2026-10-09 16:41:17 +02:00
1 parent 08229fdf86
commit ad81db07b3
17 files changed
+1500

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
/**
* Shared native-stack screen options derived from the active theme, so every
* stack (tabs, repository, settings, accounts) renders identical headers.
*/
import { useMemo } from 'react';
import type { NativeStackNavigationOptions } from '@react-navigation/native-stack';
import { useTheme } from '@/theme/theme-provider';
export function useStackScreenOptions(): NativeStackNavigationOptions {
const { colors } = useTheme();
return useMemo(
() => ({
headerStyle: { backgroundColor: colors.surface },
headerTintColor: colors.text,
headerTitleStyle: { color: colors.text },
headerShadowVisible: false,
headerBackButtonDisplayMode: 'minimal',
contentStyle: { backgroundColor: colors.background },
}),
[colors],
);
}