1import { Slot } from 'expo-router'; 2 3import { SessionProvider } from '../ctx'; 4 5export default function Root() { 6 // We won't do any navigation or route protection in the root layout as this 7 // could lead to issues where we attempt to navigate before the router has mounted. 8 return ( 9 // Setup the auth context and render our layout inside of it. 10 <SessionProvider> 11 <Slot /> 12 </SessionProvider> 13 ); 14} 15