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:
1 parent
08229fdf86
commit
ad81db07b3
17 files changed
+1500
No files matched your search
@@ -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],
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user