diff --git a/front/apps/mobile/app.config.js b/front/apps/mobile/app.config.js index e6c41811..ba37e6cb 100644 --- a/front/apps/mobile/app.config.js +++ b/front/apps/mobile/app.config.js @@ -28,7 +28,7 @@ const config = { version: "1.0.0", orientation: "default", icon: "./assets/icon.png", - entryPoint: "./index.ts", + entryPoint: "./index.tsx", userInterfaceStyle: "light", splash: { image: "./assets/splash.png", diff --git a/front/apps/mobile/eas.json b/front/apps/mobile/eas.json index 6ecbe0d0..f9b16bf8 100644 --- a/front/apps/mobile/eas.json +++ b/front/apps/mobile/eas.json @@ -5,7 +5,10 @@ "build": { "development": { "developmentClient": true, - "distribution": "internal" + "distribution": "internal", + "env": { + "APP_VARIANT": "development" + } }, "preview": { "distribution": "internal" diff --git a/front/apps/mobile/index.ts b/front/apps/mobile/index.tsx similarity index 77% rename from front/apps/mobile/index.ts rename to front/apps/mobile/index.tsx index 41a3929b..4de1bfda 100644 --- a/front/apps/mobile/index.ts +++ b/front/apps/mobile/index.tsx @@ -18,4 +18,13 @@ * along with Kyoo. If not, see . */ -import "expo-router/entry"; +import { registerRootComponent } from "expo"; +import { ExpoRoot } from "expo-router"; + +export function App() { + // @ts-ignore + const ctx = require.context("./app"); + return ; +} + +registerRootComponent(App); diff --git a/front/apps/mobile/package.json b/front/apps/mobile/package.json index 9f9b2df4..b3fe8687 100644 --- a/front/apps/mobile/package.json +++ b/front/apps/mobile/package.json @@ -1,7 +1,7 @@ { "name": "mobile", "version": "1.0.0", - "main": "index.ts", + "main": "index.tsx", "scripts": { "dev": "expo start", "android": "expo start --android", diff --git a/front/eas.json b/front/eas.json deleted file mode 100644 index 7e1e78cd..00000000 --- a/front/eas.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "cli": { - "version": ">= 3.1.1" - }, - "build": { - "development": { - "developmentClient": true, - "distribution": "internal" - }, - "preview": { - "distribution": "internal" - }, - "production": {} - }, - "submit": { - "production": {} - } -}