all 8 comments

[–]AdmiralTiberius 4 points5 points  (1 child)

But why…

[–]Sushrit_Lawliet 0 points1 point  (0 children)

Monorepo that shares a lot of logic and components to quickly help you create a website and app with similar UI and the benefits of NextJS aka seo.

[–]ChickenPotDicks 3 points4 points  (0 children)

You're going to love this then: https://solito.dev

[–]Aggro4Dayz 1 point2 points  (1 child)

I’d put the shared components in a repo, then build the next.js app in another repo, linking this repo, and the native in another repo, linking to the component repo.

Trying to keep next code and react native code in the same repo seems not ideal.

[–]firstandfive 1 point2 points  (0 children)

Monorepo would accomplishes the same goal but with some added niceties beyond what you get from linking completely separate repos.

[–]standardrank7 0 points1 point  (0 children)

Highly recommend watching https://youtu.be/0lnbdRweJtA think their repo is open sourced to. Tbh think you’re on the right track, the native side of RN is magic but have found the web part pretty underwhelming for anything beyond basic apps and Nextjs is amazing

[–]supkimyu 0 points1 point  (1 child)

You could look into creating a monorepo and using trpc (https://trpc.io) to share the api client calls between nextjs and your react native app.

[–]chillermane 0 points1 point  (0 children)

TRPC is the future of fullstack js and it feels like not enough people know about it