_layout.tsx
Root _layout.tsx
replaces App.jsx/tsx
.
This file is rendered before any other route in your app and is where you would put the initialization code that may have previously gone inside an App.jsx file, such as loading fonts or interacting with the splash screen.
app
app
directory is exclusively for defining your app's routes.