Skip to content
/ nx-expo-nextjs Public template

Nx monorepo with Next.js and Expo set up using Solito

Notifications You must be signed in to change notification settings

amosbastian/nx-expo-nextjs

Repository files navigation

Nx, Expo, Next.js with Solito monorepo

GIF showing the site and app

🔦 About

This monorepo is a copy of the "blank" monorepo found in the Solito repository. The only difference is that this monorepo is using Nx and the folder structure is slightly different because of that.

📦 Included packages

  • solito for cross-platform navigation
  • Expo SDK 45
  • Next.js 12
  • React Navigation 6

🗂 Folder layout

  • apps entry points for each app

    • site
    • app
  • libs

    • feature (home and user)
    • shared/provider (all the providers that wrap the app, and some no-ops for web)
    • navigation Next.js has a pages/ folder. React Native doesn't. This folder contains navigation-related code for RN. You may use it for any navigation code, such as custom links.

🏁 Start the app

  • Install dependencies
  • Next.js: nx serve site
  • Expo: nx serve app

🧐 Why use Expo + Next.js?

See Fernando Rojo's (@FernandoTheRojo) talk about this topic at Next.js Conf 2021:

image

About

Nx monorepo with Next.js and Expo set up using Solito

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published