Upgrade to expo 56

This commit is contained in:
Zoe Roux
2026-05-24 14:09:57 +02:00
parent 0958dbaa58
commit 94e96e9d99
8 changed files with 270 additions and 414 deletions
+9 -8
View File
@@ -1,15 +1,16 @@
import { Slot, withLayoutContext } from "expo-router";
import {
createMaterialTopTabNavigator,
type MaterialTopTabNavigationEventMap,
type MaterialTopTabNavigationOptions,
} from "@react-navigation/material-top-tabs";
import type {
NavigationProp,
ParamListBase,
TabNavigationState,
} from "@react-navigation/native";
import { useFocusEffect, useNavigation } from "@react-navigation/native";
import { Slot, withLayoutContext } from "expo-router";
} from "expo-router/js-top-tabs";
import {
type NavigationProp,
type ParamListBase,
type TabNavigationState,
useFocusEffect,
useNavigation,
} from "expo-router/react-navigation";
import { useCallback } from "react";
import { useTranslation } from "react-i18next";
import { Platform } from "react-native";
+1 -1
View File
@@ -1,11 +1,11 @@
import { Image as EImage } from "expo-image";
import KyooLogo from "public/icon.svg";
import type { ComponentProps } from "react";
import { type ImageStyle, Platform, View, type ViewProps } from "react-native";
import { withUniwind } from "uniwind";
import type { KImage } from "~/models";
import { useToken } from "~/providers/account-context";
import { cn } from "~/utils";
import KyooLogo from "~public/icon.svg";
import { Skeleton } from "../skeleton";
const Img = withUniwind(EImage);
+2 -2
View File
@@ -1,9 +1,9 @@
import { PortalProvider } from "@gorhom/portal";
import { HydrationBoundary, QueryClientProvider } from "@tanstack/react-query";
import {
DefaultTheme,
ThemeProvider as RNThemeProvider,
} from "@react-navigation/native";
import { HydrationBoundary, QueryClientProvider } from "@tanstack/react-query";
} from "expo-router/react-navigation";
import { type ReactNode, useState } from "react";
import { SafeAreaListener } from "react-native-safe-area-context";
import {
+1 -1
View File
@@ -5,7 +5,7 @@ import { RetryableError } from "~/models/retryable-error";
import { Button, H1, P } from "~/primitives";
import "../global.css";
import "~/fonts.web.css";
import { Header, SafeAreaProviderCompat } from "@react-navigation/elements";
import { Header, SafeAreaProviderCompat } from "expo-router/react-navigation";
import { useCSSVariable } from "uniwind";
import { NavbarProfile, NavbarTitle } from "~/ui/navbar";
+2 -2
View File
@@ -8,9 +8,8 @@ import Person from "@material-symbols/svg-400/rounded/person-fill.svg";
import Play from "@material-symbols/svg-400/rounded/play_arrow-fill.svg";
import Search from "@material-symbols/svg-400/rounded/search-fill.svg";
import Settings from "@material-symbols/svg-400/rounded/settings.svg";
import { useIsFocused } from "@react-navigation/native";
import { useNavigation, usePathname, useRouter } from "expo-router";
import KyooLongLogo from "public/icon-long.svg";
import { useIsFocused } from "expo-router/react-navigation";
import {
type ComponentProps,
type ComponentType,
@@ -49,6 +48,7 @@ import {
import { useAccount, useAccounts } from "~/providers/account-context";
import { logout } from "~/ui/login/logic";
import { cn, useQueryState } from "~/utils";
import KyooLongLogo from "~public/icon-long.svg";
export const NavbarLeft = () => {
const { t } = useTranslation();