What I'm trying to achieve is a React Native + Next.js in one app, no monorepo. In my opinion the monorepo adds a lot of complexity and a number of fairly new React Native developers stumble across this while working with Solito for their first time.
I'm playing around with processModuleFilter from Metro bundler which helps us discard specific modules from the output. Of course, I'm trying to discard Next.js from native and here are the results:
Hello!
Thank you for the work you put in around the React Native community! Really an inspiration.
I'm maintaining this template: https://github.com/criszz77/luna
What I'm trying to achieve is a React Native + Next.js in one app, no monorepo. In my opinion the monorepo adds a lot of complexity and a number of fairly new React Native developers stumble across this while working with Solito for their first time.
I'm playing around with
processModuleFilter
from Metro bundler which helps us discard specific modules from the output. Of course, I'm trying to discardNext.js
from native and here are the results:Either clone
π Luna
or install a new app withCopy this
serializer
option in yourmetro.config.js
:Run
yarn start && yarn ios
In the console.logs, not only you will see that
Next.js
seems to be bundled in the Native app, but also the app will crash.EDIT:
Or if you try to use Solito in a bare react native app: