Monorepo
Unanswered
Barbary Lion posted this in #help-forum
Barbary LionOP
Hey guys, I'm trying to make a monorepo with nextjs 16.2.2, expo 54 and nativewind 4.2.3, at first I tried using tailwind v4 but now I'm usign V3
I made these packages
- monorepo/apps/web
- monorepo/apps/mobile
- monorepo/packages/ui
I've tried to config this like I did a year ago, but it does not work, I want to be able to have a styled react native button (Pressable) component and have it working on the web, I was able to make it render, but it has no styles, and if I add
I'm also using expo adapter but it did not help, the problem with the styling is with nativewind, how can I make it work on next?
I made these packages
- monorepo/apps/web
- monorepo/apps/mobile
- monorepo/packages/ui
I've tried to config this like I did a year ago, but it does not work, I want to be able to have a styled react native button (Pressable) component and have it working on the web, I was able to make it render, but it has no styles, and if I add
"jsxImportSource": "nativewind" it crashes the app because of the SSR, I also had previously the App Router and I'd like to use it instead of the pages, I've seen some monorepo projects working with pages but I dont want it.I'm also using expo adapter but it did not help, the problem with the styling is with nativewind, how can I make it work on next?
1 Reply
Barbary LionOP
Update: It looks like it is easier with webpack but also slower, I also don't mind if there is a way to have web components working on mobile with some interop, I just want to have reusable code so I can have one component being used in web and mobile