Here is a link with the details:
https://docs.expo.dev/router/reference/troubleshooting/#missing-back-button
Basically put into the _layout file the const:
export const unstable_settings = { initialRouteName: "index", };