Capa API tipada de los 8 endpoints, BD local espejo del bundle + outbox (operaciones y media) + cursor de sync, motor runSync (PUSH /sync -> PUSH /media -> PULL bundle?since) con idempotencia por uuid y last-write-wins, mutaciones de alto nivel (write local + encolar), sesion con token en SecureStore, conectividad NetInfo y UI minima (Login -> Proyectos -> Detalle). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
23 lines
602 B
TypeScript
23 lines
602 B
TypeScript
import { StatusBar } from 'expo-status-bar';
|
|
import React, { useEffect } from 'react';
|
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
import { SessionProvider } from './src/auth/session';
|
|
import { getDb } from './src/db/database';
|
|
import { RootNavigator } from './src/navigation';
|
|
|
|
export default function App() {
|
|
// Abre y migra la BD local al arrancar.
|
|
useEffect(() => {
|
|
void getDb();
|
|
}, []);
|
|
|
|
return (
|
|
<SafeAreaProvider>
|
|
<SessionProvider>
|
|
<RootNavigator />
|
|
<StatusBar style="light" />
|
|
</SessionProvider>
|
|
</SafeAreaProvider>
|
|
);
|
|
}
|