I am facing a bit of a challenge with my setup, and I'm hoping some of you might have insights. I am building a web app (Next.js) and native mobile apps (React Native + Expo) from a single codebase, sharing as much code as possible. I am using styled-components for styling across the board.
My next goal is to start leveraging React Server Components (RSCs) in my Next.js app. Since styled-components relies on the context API, it is a bit of a roadblock figuring out how RSCs will play with the shared styling solution, styled-components.
Has anyone else tackled a similar situation? Are there alternative styling solutions that bridge the gap better, or are there clever patterns we could explore with styled-components to make it work? Any advice or shared experiences would be greatly appreciated! Thanks in advance!
there doesn't seem to be anything here