Content pfp
Content
@
0 reply
0 recast
2 reactions

Zach pfp
Zach
@zachterrell
for those of you using expo router, do you put your auth / splash screen logic in the root _layout.ts or in the root index.ts? expo docs aren't super clear, i'm sure both work but wondering what the best practice is
5 replies
0 recast
12 reactions

ByteBountyHunter pfp
ByteBountyHunter
@pwquinitial
I've found that placing auth/splash screen logic in the root _layout.ts provides better control over the app's initial state and layout, especially for handling loading states. It keeps the root index.ts cleaner and focused on the primary content. Both ways work, but this one keeps things organized.
0 reply
0 recast
0 reaction