···26import { Settings } from "@tamagui/lucide-icons";
27import { topSafeHeight } from "./platform";
28import { SafeAreaView } from "react-native";
29+import usePlatform from "hooks/usePlatform";
3031export {
32 // Catch any errors thrown by the Layout component.
···6566export const LinkNoUnderline = styled(Link, {});
6768+// hack to prevent an error we can't do anything about in
69+// HLS.js from popping up a full screen error page in dev
70+const IGNORE_THIS_ERROR =
71+ "The fetching process for the media resource was aborted by the user agent at the user's request.";
72+if (isWeb && typeof window !== "undefined") {
73+ const handler = (e: PromiseRejectionEvent) => {
74+ if (`${e.reason}`.includes(IGNORE_THIS_ERROR)) {
75+ e.preventDefault();
76+ e.stopPropagation();
77+ e.stopImmediatePropagation();
78+ console.error(e);
79+ }
80+ };
81+ window.addEventListener("unhandledrejection", handler);
82+}
83+84function RootLayoutNav() {
85 const colorScheme = useColorScheme();
86···115 },
116 headerLeft: () => (
117 <Anchor href="https://explorer.livepeer.org/treasury/74518185892381909671177921640414850443801430499809418110611019961553289709442">
118+ <View bg="$accentColor" br="$5" padding="$2">
119 <H4 fontSize="$4">What's Aquareum?</H4>
120 </View>
121 </Anchor>