frontend client for gemstone. decentralised workplace app
at main 552 B view raw
1import { useDebugState } from "@/providers/DebugProvider"; 2import type { NativeStackNavigationOptions } from "@react-navigation/native-stack"; 3import { Stack as ExpoStack } from "expo-router"; 4 5export const Stack = ({ 6 screenOptions, 7 ...props 8}: { 9 screenOptions?: NativeStackNavigationOptions; 10}) => { 11 const debugValue = useDebugState(); 12 const { showStackHeader } = debugValue; 13 return ( 14 <ExpoStack 15 {...props} 16 screenOptions={{ headerShown: showStackHeader, ...screenOptions }} 17 /> 18 ); 19};