diff --git a/example/app/app/+html.tsx b/example/app/app/+html.tsx index d076575..a88a856 100644 --- a/example/app/app/+html.tsx +++ b/example/app/app/+html.tsx @@ -1,6 +1,5 @@ import { ScrollViewStyleReset } from "expo-router/html"; import { WebProvider } from "@/store/WebProvider"; -import { MAX_WIDTH } from "@/constants/sizes"; // This file is web-only and used to configure the root HTML for every // web page during static rendering. @@ -17,6 +16,12 @@ export default function Root({ children }: { children: React.ReactNode }) { content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1" /> + {/* This CSP used to control which domain could embed this App. For now, we're using this App in doc site. */} + + {/* Disable body scrolling on web. This makes ScrollView components work closer to how they do on native. However, body scrolling is often nice to have for mobile web. If you want to enable it, remove this line. @@ -26,7 +31,7 @@ export default function Root({ children }: { children: React.ReactNode }) { {/* Using raw CSS styles as an escape-hatch to ensure the background color never flickers in dark-mode. */}