From ec1184d5c9a38f7687bbb4f195cb7d8c0041db91 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sat, 27 Jan 2024 19:10:52 +0100 Subject: [PATCH] Fix breaking changes --- front/apps/mobile/app/(app)/_layout.tsx | 3 ++- front/apps/mobile/app/_layout.tsx | 4 ++-- front/apps/mobile/babel.config.js | 31 ------------------------- 3 files changed, 4 insertions(+), 34 deletions(-) delete mode 100644 front/apps/mobile/babel.config.js diff --git a/front/apps/mobile/app/(app)/_layout.tsx b/front/apps/mobile/app/(app)/_layout.tsx index b5c38565..77e0e436 100644 --- a/front/apps/mobile/app/(app)/_layout.tsx +++ b/front/apps/mobile/app/(app)/_layout.tsx @@ -22,7 +22,8 @@ import { ConnectionErrorContext, useAccount } from "@kyoo/models"; import { CircularProgress } from "@kyoo/primitives"; import { NavbarRight, NavbarTitle } from "@kyoo/ui"; import { useNetInfo } from "@react-native-community/netinfo"; -import { Redirect, SplashScreen, Stack } from "expo-router"; +import { Redirect, Stack } from "expo-router"; +import * as SplashScreen from "expo-splash-screen"; import { useContext, useEffect } from "react"; import { useSafeAreaInsets } from "react-native-safe-area-context"; import { useTheme } from "yoshiki/native"; diff --git a/front/apps/mobile/app/_layout.tsx b/front/apps/mobile/app/_layout.tsx index cce8a074..ebda9b9f 100644 --- a/front/apps/mobile/app/_layout.tsx +++ b/front/apps/mobile/app/_layout.tsx @@ -29,7 +29,7 @@ import { createSyncStoragePersister } from "@tanstack/query-sync-storage-persist import i18next from "i18next"; import { Slot } from "expo-router"; import { getLocales } from "expo-localization"; -import { SplashScreen } from "expo-router"; +import * as SplashScreen from "expo-splash-screen"; import { useFonts, Poppins_300Light, @@ -79,7 +79,7 @@ i18next.use(initReactI18next).init({ escapeValue: false, }, fallbackLng: "en", - lng: getLocales()[0].languageCode, + lng: getLocales()[0].languageCode ?? "en", resources: { en: { translation: en }, fr: { translation: fr }, diff --git a/front/apps/mobile/babel.config.js b/front/apps/mobile/babel.config.js deleted file mode 100644 index 1e47fb8c..00000000 --- a/front/apps/mobile/babel.config.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Kyoo - A portable and vast media library solution. - * Copyright (c) Kyoo. - * - * See AUTHORS.md and LICENSE file in the project root for full license information. - * - * Kyoo is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * any later version. - * - * Kyoo is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Kyoo. If not, see . - */ - -module.exports = function (api) { - api.cache(true); - return { - presets: ["babel-preset-expo"], - plugins: [ - "transform-inline-environment-variables", - "react-native-reanimated/plugin", - "expo-router/babel", - ], - }; -};