To me, I needed to initialize the ExpoRoot of expo-router in index.js, like that:
import { registerRootComponent } from "expo";
import { ExpoRoot } from "expo-router";
function App() {
const ctx = require.context("./app");
return <ExpoRoot context={ctx} />;
}
registerRootComponent(App);