question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Next.js with Expo for Web

See original GitHub issue

Description

Today, @nrwl/next & @nrwl/expo support Next.js and Expo apps respectively, but not in the same application.

This link shows the use case

It would be wonderful if there was first party support to implement the Expo SDK for a Next.js app in a NX monorepo.

Motivation

At Porsche Digital, we are happy users of the NX monorepo. We would like to increase code re-use across our Next.js and React Native projects. One way to do this would be to use the Expo SDK with Next.js to gain access to Expo’s wonderful universal components.

Suggested Implementation

Alternate Implementations

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:6
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
jaysoocommented, May 12, 2022

I put a small demo together here https://github.com/jaysoo/nx-expo-nextjs

Not everything is working, like building through next seems to just hangs.

I don’t think we’ll build support into Nx right now since it seems experimental, but we could write a custom plugin+preset to generate the workspace (or bootstrap new/existing app). Ping me if anyone is interested in writing this plugin.

1reaction
amosbastiancommented, Jul 14, 2022

I’ve made an example with Nx using Expo, Next.js and Solito here, hopefully it’s useful to someone 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Next.js with Expo for Web
Next.js is a React framework that provides simple page-based routing as well as server-side rendering. To use Next.js with Expo for web we...
Read more >
How to set up Next.js into the existing Expo project - Medium
The most popular solution for Expo Next.js applications is @expo/nextjs-adapter . Let's try to build a good hybrid approach for web experience. First,...
Read more >
Using Expo SDK with Next.js websites - DEV Community ‍ ‍
I work on Expo, React Native, and React Native for web. Also making Expo CLI, prebuilding, Expo config plugins, EAS Build, and EAS...
Read more >
Expo + Next.js for mobile + web : r/reactnative - Reddit
I'm an experienced backend developer trying to sort through all the options for creating a mobile + web application.
Read more >
examples/with-expo-typescript/README.md - Next.js - Fossies
Next. · The native bundle is built using the Metro bundler and may not have the same level of optimization as the web...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found