Skip to content

An expo router navigation template with basic Login and Logout features.

Notifications You must be signed in to change notification settings

Chasty/expo-router-auth-navigation-template

Repository files navigation

Expo router navigation template

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.

⬇️ How to use this template

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

Preview-Navigation.mov

🧭 Navigation Structure

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

📁 Project Structure

  • 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 with useAuth and handle the authentication/authorization routing with useProtectedRoute.

🚀 How to develop it

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

About

An expo router navigation template with basic Login and Logout features.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published