Fix breaking changes

This commit is contained in:
Zoe Roux 2024-01-27 19:10:52 +01:00
parent ae518cafe5
commit ec1184d5c9
3 changed files with 4 additions and 34 deletions

View File

@ -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";

View File

@ -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 },

View File

@ -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 <https://www.gnu.org/licenses/>.
*/
module.exports = function (api) {
api.cache(true);
return {
presets: ["babel-preset-expo"],
plugins: [
"transform-inline-environment-variables",
"react-native-reanimated/plugin",
"expo-router/babel",
],
};
};