I'm using expo-router and expo-sqlite to build an Android app with Expo. The build finishes successfully using eas build, but when I install and run the app (APK) on an emulator, the app shows only a blank white screen. The same code works fine in development (expo start).
Here’s a summary of my setup:
- SQLite DB is opened using:
import * as SQLite from 'expo-sqlite';
export const db = SQLite.openDatabase('pastme.db');
- I use
expo-routerfor routing. - My
metro.config.jsis set up with aliasing for@as project root. tsconfig.jsonincludes:
{
"compilerOptions": {
"paths": {
"@/*": ["./*"]
}
}
}
- My
app.jsonincludes the following plugins:
"plugins": [
"expo-router",
["expo-splash-screen", { "image": "./assets/images/splash-icon.png", "resizeMode": "contain", "backgroundColor": "#ffffff" }],
"expo-sqlite"
]
What I’ve tried:
- Cleaned build cache with
--clear-cache - Tried using
expo-sqlitemanually in a blank screen - Confirmed no crash logs
- Made sure assets are bundled properly
Any idea why this is happening or what I may have missed?
Thanks in advance!