Support Next.js with Expo for Web
See original GitHub issue- [x ] I’d be willing to implement this feature (contributing guide)
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:
- Created a year ago
- Reactions:6
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
I’ve made an example with Nx using Expo, Next.js and Solito here, hopefully it’s useful to someone 😄