import { Stack } from 'expo-router';
import { SQLiteProvider } from 'expo-sqlite';
import { StatusBar } from 'expo-status-bar';
import { migrateDb } from '@/db';

export default function RootLayout() {
  return (
    <SQLiteProvider databaseName="bincio.db" onInit={migrateDb}>
      <StatusBar style="light" />
      <Stack screenOptions={{ headerShown: false }} />
    </SQLiteProvider>
  );
}
