removed extra packages

This commit is contained in:
aliyanlatif 2024-02-14 09:55:01 +05:00
parent 91a1bb84de
commit efa0e57385
5 changed files with 0 additions and 31 deletions

View File

@ -6,7 +6,6 @@ import * as SplashScreen from "expo-splash-screen";
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import { Platform, StatusBar } from "react-native"; import { Platform, StatusBar } from "react-native";
import FlashMessage from "react-native-flash-message"; import FlashMessage from "react-native-flash-message";
//import i18n from "./i18n";
import setupApolloClient from "./src/apollo/index"; import setupApolloClient from "./src/apollo/index";
import { AuthContext } from "./src/context/auth"; import { AuthContext } from "./src/context/auth";
import { ConfigurationProvider } from "./src/context/configuration"; import { ConfigurationProvider } from "./src/context/configuration";
@ -56,7 +55,6 @@ export default function App() {
}; };
async function loadData() { async function loadData() {
//await i18n.initAsync();
await Font.loadAsync({ await Font.loadAsync({
MuseoSans300: require("./assets/font/MuseoSans/MuseoSans300.ttf"), MuseoSans300: require("./assets/font/MuseoSans/MuseoSans300.ttf"),
MuseoSans500: require("./assets/font/MuseoSans/MuseoSans500.ttf"), MuseoSans500: require("./assets/font/MuseoSans/MuseoSans500.ttf"),

View File

@ -1,6 +1,5 @@
import i18next from "i18next"; import i18next from "i18next";
import { initReactI18next } from "react-i18next"; import { initReactI18next } from "react-i18next";
import * as Localization from "expo-localization";
import { Platform } from "react-native"; import { Platform } from "react-native";
import { en } from "./languages/en"; import { en } from "./languages/en";
import { de } from "./languages/de"; import { de } from "./languages/de";

View File

@ -29,7 +29,6 @@
"expo": "^47.0.0", "expo": "^47.0.0",
"expo-constants": "~14.0.2", "expo-constants": "~14.0.2",
"expo-font": "~11.0.1", "expo-font": "~11.0.1",
"expo-localization": "~14.0.0",
"expo-location": "~15.0.1", "expo-location": "~15.0.1",
"expo-modules-autolinking": "^1.5.1", "expo-modules-autolinking": "^1.5.1",
"expo-navigation-bar": "~2.0.1", "expo-navigation-bar": "~2.0.1",
@ -40,7 +39,6 @@
"expo-updates": "~0.15.6", "expo-updates": "~0.15.6",
"graphql": "^14.3.1", "graphql": "^14.3.1",
"graphql-tag": "^2.10.1", "graphql-tag": "^2.10.1",
"i18n-js": "^3.3.0",
"i18next": "^23.8.2", "i18next": "^23.8.2",
"patch-package": "^6.5.1", "patch-package": "^6.5.1",
"react": "18.1.0", "react": "18.1.0",
@ -8406,17 +8404,6 @@
"expo": "*" "expo": "*"
} }
}, },
"node_modules/expo-localization": {
"version": "14.0.0",
"resolved": "https://registry.npmjs.org/expo-localization/-/expo-localization-14.0.0.tgz",
"integrity": "sha512-Rx4ZAANTTVuY6EnM3WXjNWn+CSpDUOaJziHPB4Az+lb4r3JMQ1H+go9s8KY9DYP0IiRM3sQhiyFQqSWzsUgvHA==",
"dependencies": {
"rtl-detect": "^1.0.2"
},
"peerDependencies": {
"expo": "*"
}
},
"node_modules/expo-location": { "node_modules/expo-location": {
"version": "15.0.1", "version": "15.0.1",
"resolved": "https://registry.npmjs.org/expo-location/-/expo-location-15.0.1.tgz", "resolved": "https://registry.npmjs.org/expo-location/-/expo-location-15.0.1.tgz",
@ -10134,11 +10121,6 @@
"node": ">=8" "node": ">=8"
} }
}, },
"node_modules/i18n-js": {
"version": "3.9.2",
"resolved": "https://registry.npmjs.org/i18n-js/-/i18n-js-3.9.2.tgz",
"integrity": "sha512-+Gm8h5HL0emzKhRx2avMKX+nKiVPXeaOZm7Euf2/pbbFcLQoJ3zZYiUykAzoRasijCoWos2Kl1tslmScTgAQKw=="
},
"node_modules/i18next": { "node_modules/i18next": {
"version": "23.8.2", "version": "23.8.2",
"resolved": "https://registry.npmjs.org/i18next/-/i18next-23.8.2.tgz", "resolved": "https://registry.npmjs.org/i18next/-/i18next-23.8.2.tgz",
@ -15288,11 +15270,6 @@
"rimraf": "bin.js" "rimraf": "bin.js"
} }
}, },
"node_modules/rtl-detect": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/rtl-detect/-/rtl-detect-1.0.4.tgz",
"integrity": "sha512-EBR4I2VDSSYr7PkBmFy04uhycIpDKp+21p/jARYXlCSjQksTBQcJ0HFUPOO79EPPH5JS6VAhiIQbycf0O3JAxQ=="
},
"node_modules/run-parallel": { "node_modules/run-parallel": {
"version": "1.2.0", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",

View File

@ -43,7 +43,6 @@
"expo": "^47.0.0", "expo": "^47.0.0",
"expo-constants": "~14.0.2", "expo-constants": "~14.0.2",
"expo-font": "~11.0.1", "expo-font": "~11.0.1",
"expo-localization": "~14.0.0",
"expo-location": "~15.0.1", "expo-location": "~15.0.1",
"expo-modules-autolinking": "^1.5.1", "expo-modules-autolinking": "^1.5.1",
"expo-navigation-bar": "~2.0.1", "expo-navigation-bar": "~2.0.1",
@ -54,7 +53,6 @@
"expo-updates": "~0.15.6", "expo-updates": "~0.15.6",
"graphql": "^14.3.1", "graphql": "^14.3.1",
"graphql-tag": "^2.10.1", "graphql-tag": "^2.10.1",
"i18n-js": "^3.3.0",
"i18next": "^23.8.2", "i18next": "^23.8.2",
"patch-package": "^6.5.1", "patch-package": "^6.5.1",
"react": "18.1.0", "react": "18.1.0",

View File

@ -1,7 +1,5 @@
import AsyncStorage from "@react-native-async-storage/async-storage"; import AsyncStorage from "@react-native-async-storage/async-storage";
import { useNavigation } from "@react-navigation/native"; import { useNavigation } from "@react-navigation/native";
import * as Localization from "expo-localization";
import * as Updates from "expo-updates";
import React, { useEffect, useLayoutEffect, useState } from "react"; import React, { useEffect, useLayoutEffect, useState } from "react";
import { TouchableOpacity, View, ActivityIndicator } from "react-native"; import { TouchableOpacity, View, ActivityIndicator } from "react-native";
import i18n from "../../../i18next"; import i18n from "../../../i18next";
@ -65,7 +63,6 @@ function Language() {
languageNameSetter(langName); languageNameSetter(langName);
} }
i18n.changeLanguage(lang); i18n.changeLanguage(lang);
//modalVisibleSetter(false);
} catch (error) { } catch (error) {
console.error("Error during language selection:", error); console.error("Error during language selection:", error);
} finally { } finally {