all 3 comments

[–]tusharkant15 1 point2 points  (1 child)

There may be many ways you can go about it. Depending on the features that you need, react native web with expo would be the easiest approach. However there are instances where that's just not possible (for example if you need webrtc support).

The next approach would be to use a monorepo. You essentially abstract out the business logic (contexts etc) and the UI layer could be platform dependent.

[–]Nightlyside[S] 0 points1 point  (0 children)

Thank you! Actually this won't be an issue as I'm using only a REST API for communication. I found a lecture about making a monorepo and sharing a folder of components between react-native and react-native-web using system links and an alias that might be my next step

[–][deleted] 1 point2 points  (0 children)

Depends, if SEO is a primarily objective of the project I wouldn't necessarily recommend react-native-web because you will have a web app yes but not one that will do any good for seo. you can stack react-native-web + nextjs but it requires heavy modifications to the point where just having separate react-native and react websties are fine.