diff --git a/front/App.tsx b/front/App.tsx index 638964c..d67f5f8 100644 --- a/front/App.tsx +++ b/front/App.tsx @@ -6,12 +6,17 @@ import { Provider } from 'react-redux'; import store, { persistor } from './state/Store'; import { Router } from './Navigation'; import './i18n/i18n'; +import * as SplashScreen from 'expo-splash-screen'; import { PersistGate } from "redux-persist/integration/react"; import LanguageGate from "./i18n/LanguageGate"; const queryClient = new QueryClient(); export default function App() { + + SplashScreen.preventAutoHideAsync(); + setTimeout(SplashScreen.hideAsync, 500); + return ( diff --git a/front/app.json b/front/app.json new file mode 100644 index 0000000..b4c10ac --- /dev/null +++ b/front/app.json @@ -0,0 +1,41 @@ +{ + "expo": { + "name": "Chromacase", + "slug": "Chromacase", + "version": "1.0.0", + "orientation": "portrait", + "icon": "./assets/icon.png", + "userInterfaceStyle": "light", + "splash": { + "image": "./assets/splashLogo.png", + "resizeMode": "cover", + "backgroundColor": "#ffffff" + }, + "updates": { + "fallbackToCacheTimeout": 0 + }, + "assetBundlePatterns": [ + "**/*" + ], + "ios": { + "supportsTablet": true + }, + "android": { + "adaptiveIcon": { + "foregroundImage": "./assets/adaptive-icon.png", + "backgroundColor": "#FFFFFF", + "package": "com.chromacase.chromacase", + "versionCode": 1 + }, + "package": "build.apk" + }, + "web": { + "favicon": "./assets/favicon.png" + }, + "extra": { + "eas": { + "projectId": "dade8e5e-3e2c-49f7-98c5-cf8834c7ebb2" + } + } + } +} diff --git a/front/assets/splashLogo.png b/front/assets/splashLogo.png new file mode 100644 index 0000000..a7205cb Binary files /dev/null and b/front/assets/splashLogo.png differ diff --git a/front/i18n/i18n.ts b/front/i18n/i18n.ts index 7cbf9f5..6879540 100644 --- a/front/i18n/i18n.ts +++ b/front/i18n/i18n.ts @@ -9,6 +9,7 @@ export const DefaultLanguage: AvailableLanguages = 'en'; i18n .use(initReactI18next) .init({ + compatibilityJSON: 'v3', resources: { en: { translation: en diff --git a/front/package.json b/front/package.json index e4f1440..c3f7201 100644 --- a/front/package.json +++ b/front/package.json @@ -26,6 +26,7 @@ "expo": "~45.0.0", "expo-asset": "~8.5.0", "expo-dev-client": "~1.0.0", + "expo-splash-screen": "~0.15.1", "expo-secure-store": "~11.2.0", "expo-status-bar": "~1.3.0", "format-duration": "^2.0.0",