11import "./global.css" ;
2- import { BottomSheetModalProvider } from "@gorhom/bottom-sheet" ;
3- import { type Theme , ThemeProvider } from "@react-navigation/native" ;
4- import { SplashScreen , Stack } from "expo-router" ;
5- import { StatusBar } from "expo-status-bar" ;
2+ import { BottomSheetModalProvider } from "@gorhom/bottom-sheet" ;
3+ import { type Theme , ThemeProvider } from "@react-navigation/native" ;
4+ import { SplashScreen , Stack } from "expo-router" ;
5+ import { StatusBar } from "expo-status-bar" ;
66import * as React from "react" ;
7- import { GestureHandlerRootView } from "react-native-gesture-handler" ;
8- import { PortalHost } from "@/components/primitives/portal" ;
9- import { DatabaseProvider } from "@/db/provider" ;
10- import { setAndroidNavigationBar } from "@/lib/android-navigation-bar" ;
11- import { NAV_THEME } from "@/lib/constants" ;
12- import { useColorScheme } from "@/lib/useColorScheme" ;
13- import { getItem , setItem } from "@/lib/storage" ;
14- import { Platform } from "react-native" ;
7+ import { GestureHandlerRootView } from "react-native-gesture-handler" ;
8+ import { PortalHost } from "@/components/primitives/portal" ;
9+ import { DatabaseProvider } from "@/db/provider" ;
10+ import { setAndroidNavigationBar } from "@/lib/android-navigation-bar" ;
11+ import { NAV_THEME } from "@/lib/constants" ;
12+ import { useColorScheme } from "@/lib/useColorScheme" ;
13+ import { getItem , setItem } from "@/lib/storage" ;
14+ import { Platform } from "react-native" ;
1515
1616const NAV_FONT_FAMILY = "Inter-Black" ;
1717const LIGHT_THEME : Theme = {
@@ -72,7 +72,7 @@ export const unstable_settings = {
7272SplashScreen . preventAutoHideAsync ( ) ;
7373
7474export default function RootLayout ( ) {
75- const { colorScheme, setColorScheme} = useColorScheme ( ) ;
75+ const { colorScheme, setColorScheme } = useColorScheme ( ) ;
7676 const [ isColorSchemeLoaded , setIsColorSchemeLoaded ] = React . useState ( false ) ;
7777
7878 React . useEffect ( ( ) => {
@@ -108,10 +108,10 @@ export default function RootLayout() {
108108 < DatabaseProvider >
109109 < ThemeProvider value = { colorScheme === "dark" ? DARK_THEME : LIGHT_THEME } >
110110 < StatusBar style = { colorScheme === "dark" ? "light" : "dark" } />
111- < GestureHandlerRootView style = { { flex : 1 } } >
111+ < GestureHandlerRootView style = { { flex : 1 } } >
112112 < BottomSheetModalProvider >
113113 < Stack >
114- < Stack . Screen name = "(tabs)" options = { { headerShown : false } } />
114+ < Stack . Screen name = "(tabs)" options = { { title : "Habits" , headerShown : false } } />
115115 < Stack . Screen options = { {
116116 headerShadowVisible : false ,
117117 } } name = "habits/archive" />
@@ -125,8 +125,6 @@ export default function RootLayout() {
125125
126126 </ DatabaseProvider >
127127 < PortalHost />
128-
129-
130128 </ >
131129
132130 ) ;
0 commit comments