@@ -4,8 +4,10 @@ import { AppState, Platform } from "react-native";
44import { useRouter } from "expo-router" ;
55import { Stack } from "expo-router/stack" ;
66import BookmarkListHeader from "@/components/bookmarks/BookmarkListHeader" ;
7+ import { getFormSheetSurfaceOptions } from "@/lib/form-sheet-options" ;
78import { isIOS26 } from "@/lib/ios" ;
89import { useIsLoggedIn } from "@/lib/session" ;
10+ import { useColorScheme } from "@/lib/useColorScheme" ;
911import { focusManager } from "@tanstack/react-query" ;
1012
1113function onAppStateChange ( status : AppStateStatus ) {
@@ -16,6 +18,8 @@ function onAppStateChange(status: AppStateStatus) {
1618
1719export default function Dashboard ( ) {
1820 const router = useRouter ( ) ;
21+ const { colors } = useColorScheme ( ) ;
22+ const formSheetSurfaceOptions = getFormSheetSurfaceOptions ( colors . background ) ;
1923
2024 const isLoggedIn = useIsLoggedIn ( ) ;
2125 useEffect ( ( ) => {
@@ -73,6 +77,7 @@ export default function Dashboard() {
7377 < Stack . Screen
7478 name = "bookmarks/new"
7579 options = { {
80+ ...formSheetSurfaceOptions ,
7681 headerTitle : "New Bookmark" ,
7782 headerBackTitle : "Back" ,
7883 headerTransparent : false ,
@@ -88,6 +93,7 @@ export default function Dashboard() {
8893 < Stack . Screen
8994 name = "bookmarks/[slug]/manage_tags"
9095 options = { {
96+ ...formSheetSurfaceOptions ,
9197 headerTitle : "Manage Tags" ,
9298 headerTransparent : false ,
9399 headerLargeTitle : false ,
@@ -102,6 +108,7 @@ export default function Dashboard() {
102108 < Stack . Screen
103109 name = "bookmarks/[slug]/manage_lists"
104110 options = { {
111+ ...formSheetSurfaceOptions ,
105112 headerTitle : "Manage Lists" ,
106113 headerTransparent : false ,
107114 headerLargeTitle : false ,
@@ -116,6 +123,7 @@ export default function Dashboard() {
116123 < Stack . Screen
117124 name = "bookmarks/[slug]/info"
118125 options = { {
126+ ...formSheetSurfaceOptions ,
119127 headerTitle : "Edit Bookmark" ,
120128 headerTransparent : false ,
121129 headerLargeTitle : false ,
@@ -129,6 +137,7 @@ export default function Dashboard() {
129137 < Stack . Screen
130138 name = "bookmarks/[slug]/highlights"
131139 options = { {
140+ ...formSheetSurfaceOptions ,
132141 headerTitle : "Highlights" ,
133142 headerTransparent : false ,
134143 headerLargeTitle : false ,
@@ -142,6 +151,7 @@ export default function Dashboard() {
142151 < Stack . Screen
143152 name = "lists/new"
144153 options = { {
154+ ...formSheetSurfaceOptions ,
145155 headerTitle : "New List" ,
146156 headerBackTitle : "Back" ,
147157 headerLargeTitle : false ,
@@ -156,6 +166,7 @@ export default function Dashboard() {
156166 < Stack . Screen
157167 name = "lists/[slug]/edit"
158168 options = { {
169+ ...formSheetSurfaceOptions ,
159170 headerTitle : "Edit List" ,
160171 headerBackTitle : "Back" ,
161172 headerLargeTitle : false ,
@@ -178,6 +189,7 @@ export default function Dashboard() {
178189 < Stack . Screen
179190 name = "settings/index"
180191 options = { {
192+ ...formSheetSurfaceOptions ,
181193 headerTitle : "Settings" ,
182194 headerTransparent : false ,
183195 headerLargeTitle : false ,
0 commit comments