feat: add expo-splash-screen configuration

This commit is contained in:
2026-08-11 17:00:41 +02:00
parent 522337d332
commit debfcf3843
4 changed files with 10369 additions and 10329 deletions
+3
View File
@@ -1,5 +1,6 @@
import "./global.css"; import "./global.css";
import "./src/i18n"; import "./src/i18n";
import * as SplashScreen from "expo-splash-screen";
import { StatusBar } from "expo-status-bar"; import { StatusBar } from "expo-status-bar";
import { NavigationContainer } from "@react-navigation/native"; import { NavigationContainer } from "@react-navigation/native";
import { GestureHandlerRootView } from "react-native-gesture-handler"; import { GestureHandlerRootView } from "react-native-gesture-handler";
@@ -10,6 +11,8 @@ import { useWatchWorkoutSync } from "./src/features/watch-connectivity/hooks/use
import { useSystemLanguageListener } from "./src/i18n"; import { useSystemLanguageListener } from "./src/i18n";
import * as Sentry from "@sentry/react-native"; import * as Sentry from "@sentry/react-native";
SplashScreen.preventAutoHideAsync();
Sentry.init({ Sentry.init({
dsn: "https://6197bcf085d63727d829aa89ede8e973@o4507430203293696.ingest.de.sentry.io/4511875297706064", dsn: "https://6197bcf085d63727d829aa89ede8e973@o4507430203293696.ingest.de.sentry.io/4511875297706064",
tracesSampleRate: 1.0, tracesSampleRate: 1.0,
+25 -4
View File
@@ -40,12 +40,33 @@
"plugins": [ "plugins": [
"expo-sqlite", "expo-sqlite",
"@bacons/apple-targets", "@bacons/apple-targets",
["expo-localization", { [
"supportedLocales": ["en", "nl", "de", "fr", "it", "es", "pl", "pt", "dk"] "expo-localization",
}], {
"supportedLocales": [
"en",
"nl",
"de",
"fr",
"it",
"es",
"pl",
"pt",
"dk"
]
}
],
"@sentry/react-native/expo", "@sentry/react-native/expo",
"expo-updates", "expo-updates",
"expo-system-ui" "expo-system-ui",
[
"expo-splash-screen",
{
"image": "./assets/splash-icon.png",
"resizeMode": "contain",
"backgroundColor": "#5BC0F8"
}
]
], ],
"extra": { "extra": {
"eas": { "eas": {
+10281 -10266
View File
File diff suppressed because it is too large Load Diff
+60 -59
View File
@@ -1,61 +1,62 @@
{ {
"name": "swimbuddy", "name": "swimbuddy",
"version": "1.0.0", "version": "1.0.0",
"main": "index.ts", "main": "index.ts",
"dependencies": { "dependencies": {
"@bacons/apple-targets": "^5.0.0", "@bacons/apple-targets": "^5.0.0",
"@expo/vector-icons": "^15.0.2", "@expo/vector-icons": "^15.0.2",
"@react-navigation/bottom-tabs": "^7.18.14", "@react-navigation/bottom-tabs": "^7.18.14",
"@react-navigation/native": "^7.3.14", "@react-navigation/native": "^7.3.14",
"@react-navigation/native-stack": "^7.18.6", "@react-navigation/native-stack": "^7.18.6",
"@sentry/react-native": "^8.22.0", "@sentry/react-native": "^8.22.0",
"@tailwindcss/postcss": "^4.3.3", "@tailwindcss/postcss": "^4.3.3",
"drizzle-orm": "^0.45.2", "drizzle-orm": "^0.45.2",
"expo": "~57.0.10", "expo": "~57.0.10",
"expo-application": "~57.0.2", "expo-application": "~57.0.2",
"expo-localization": "~57.0.1", "expo-localization": "~57.0.1",
"expo-sqlite": "~57.0.1", "expo-splash-screen": "~57.0.6",
"expo-status-bar": "~57.0.1", "expo-sqlite": "~57.0.1",
"expo-system-ui": "~57.0.2", "expo-status-bar": "~57.0.1",
"expo-updates": "^57.0.12", "expo-system-ui": "~57.0.2",
"i18next": "^26.3.6", "expo-updates": "^57.0.12",
"nativewind": "^5.0.0-preview.4", "i18next": "^26.3.6",
"react": "19.2.3", "nativewind": "^5.0.0-preview.4",
"react-i18next": "^17.0.11", "react": "19.2.3",
"react-native": "0.86.2", "react-i18next": "^17.0.11",
"react-native-css": "^3.0.7", "react-native": "0.86.2",
"react-native-gesture-handler": "~2.32.0", "react-native-css": "^3.0.7",
"react-native-mmkv": "^4.3.2", "react-native-gesture-handler": "~2.32.0",
"react-native-reanimated": "4.5.1", "react-native-mmkv": "^4.3.2",
"react-native-safe-area-context": "~5.7.0", "react-native-reanimated": "4.5.1",
"react-native-screens": "~4.26.0" "react-native-safe-area-context": "~5.7.0",
}, "react-native-screens": "~4.26.0"
"devDependencies": { },
"@types/react": "~19.2.2", "devDependencies": {
"babel-plugin-inline-import": "^3.0.0", "@types/react": "~19.2.2",
"drizzle-kit": "^0.31.10", "babel-plugin-inline-import": "^3.0.0",
"tailwindcss": "^4", "drizzle-kit": "^0.31.10",
"typescript": "~6.0.3" "tailwindcss": "^4",
}, "typescript": "~6.0.3"
"scripts": { },
"start": "expo start", "scripts": {
"android": "expo run:android", "start": "expo start",
"ios": "expo run:ios", "android": "expo run:android",
"web": "expo start --web", "ios": "expo run:ios",
"db:generate": "drizzle-kit generate", "web": "expo start --web",
"prebuild": "expo prebuild && npm run eas-build-post-install", "db:generate": "drizzle-kit generate",
"prebuild:clean": "expo prebuild --clean && npm run eas-build-post-install", "prebuild": "expo prebuild && npm run eas-build-post-install",
"eas-build-post-install": "node scripts/add-sentry-watch.js", "prebuild:clean": "expo prebuild --clean && npm run eas-build-post-install",
"build:wearos:debug": "./scripts/build-wearos.sh debug", "eas-build-post-install": "node scripts/add-sentry-watch.js",
"build:wearos:release": "./scripts/build-wearos.sh release", "build:wearos:debug": "./scripts/build-wearos.sh debug",
"deploy:ios": "eas build --platform ios --profile ${1:-preview} && eas submit --platform ios --profile ${1:-preview}", "build:wearos:release": "./scripts/build-wearos.sh release",
"deploy:android": "eas build --platform android --profile ${1:-preview} && eas submit --platform android --profile ${1:-preview}", "deploy:ios": "eas build --platform ios --profile ${1:-preview} && eas submit --platform ios --profile ${1:-preview}",
"deploy:wearos": "./scripts/build-wearos.sh release ${2:-}", "deploy:android": "eas build --platform android --profile ${1:-preview} && eas submit --platform android --profile ${1:-preview}",
"update": "eas update --branch ${1:-preview}", "deploy:wearos": "./scripts/build-wearos.sh release ${2:-}",
"update:production": "eas update --branch production" "update": "eas update --branch ${1:-preview}",
}, "update:production": "eas update --branch production"
"private": true, },
"overrides": { "private": true,
"lightningcss": "1.30.1" "overrides": {
} "lightningcss": "1.30.1"
}
} }