@reuvenorg/react-native-boilerplate-ultimate
Version:
A powerful CLI tool for creating React Native projects with modular architecture. Generate, manage, and scaffold React Native applications with pre-built modules and best practices.
23 lines (21 loc) • 646 B
text/typescript
import { NativeStackNavigationOptions } from '@react-navigation/native-stack';
import { useTheme } from 'react-native-paper';
// Define header styles based on theme
export const useScreenOptions = () => {
const theme = useTheme();
return {
headerShown: true,
headerBackVisible: false,
orientation: 'portrait' as const,
headerStyle: {
backgroundColor: theme.colors.surfaceVariant,
},
headerTintColor: theme.colors.onSurfaceVariant,
headerTitleStyle: {
fontWeight: '600' as const,
},
contentStyle: {
backgroundColor: theme.colors.background,
},
} as NativeStackNavigationOptions;
};