Demonstration of the file system navigation with expo router
Navigation Structure — Project Structure — Develop it
This project demonstrates how Expo Router could be used to create a basic authentication flow.
If you want to create your own initial project with this boilerplate template, use npm or yarn.
-
npm
npx create-expo-app your-app-name --template expo-router-template
-
yarn
yarn create expo-app your-app-name --template expo-router-template
Preview-Navigation.mov
app/
_layout.tsx # Stack
(auth)/
_layout.tsx # Stack
login.tsx
onboarding.tsx
register.tsx
main
_layout.tsx # Drawer
home/
_layout.tsx # Tabs
feed.tsx
notification.tsx
profile.tsx
search.tsx
app
- The navigation structured with all the the screens on the app.context
- The context for the authentication flow that expose hooks to access the context withuseAuth
and handle the authentication/authorization routing withuseProtectedRoute
.
To get your hands dirty, follow these steps.
-
$ npm install
or$ yarn install
- This will install all the required dependencies. -
$ npm start
or$ yarn start
- This will start the app, select a platform once complete.
with ❤️ Expo