layout + app

This commit is contained in:
m
2026-09-09 18:28:08 +02:00
parent 19af7d4bed
commit 45cffb15c3
6 changed files with 1424 additions and 81 deletions
-10
View File
@@ -1,10 +0,0 @@
import { AuthProvider } from './context/AuthContext';
import Index from './app/index.jsx';
export default function App() {
return (
<AuthProvider>
<Index />
</AuthProvider>
);
}
+5 -1
View File
@@ -2,6 +2,7 @@
"expo": { "expo": {
"name": "webui", "name": "webui",
"slug": "webui", "slug": "webui",
"scheme": "webui",
"version": "2.0.0", "version": "2.0.0",
"orientation": "portrait", "orientation": "portrait",
"icon": "./assets/icon.png", "icon": "./assets/icon.png",
@@ -21,6 +22,9 @@
}, },
"web": { "web": {
"favicon": "./assets/favicon.png" "favicon": "./assets/favicon.png"
} },
"plugins": [
"expo-router"
]
} }
} }
+10
View File
@@ -0,0 +1,10 @@
import { Stack } from 'expo-router';
import { AuthProvider } from '../context/AuthContext';
export default function RootLayout() {
return (
<AuthProvider>
<Stack />
</AuthProvider>
);
}
-8
View File
@@ -1,8 +0,0 @@
import { registerRootComponent } from 'expo';
import App from './App';
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);
+1400 -58
View File
File diff suppressed because it is too large Load Diff
+7 -2
View File
@@ -1,12 +1,17 @@
{ {
"name": "webui", "name": "webui",
"version": "2.0.0", "version": "2.0.0",
"main": "index.ts", "main": "expo-router/entry",
"dependencies": { "dependencies": {
"expo": "~57.0.8", "expo": "~57.0.8",
"expo-constants": "~57.0.17",
"expo-linking": "~57.0.9",
"expo-router": "~57.0.20",
"expo-status-bar": "~57.0.1", "expo-status-bar": "~57.0.1",
"react": "19.2.3", "react": "19.2.3",
"react-native": "0.86.0" "react-native": "0.86.0",
"react-native-safe-area-context": "~5.7.0",
"react-native-screens": "~4.26.0"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "~19.2.2", "@types/react": "~19.2.2",