React Native + Web Production

(Secretmapper) #1


Has anyone here used React Native + React Web in Production?

What’s the best way for code reuse? Theoretically putting everything in one big monorepo and just having platform specific code would work, and I think this is ideal in a DX sense.

However I’m not sure how good this is for deploying on web. We deploy on the cloud for the webapp and that means all native modules would also be installed on the server. This shouldn’t be a problem but I’m not sure.

Should splitting application logic (relay/redux containers) and platform specific components be better? I’m thinking separating them on their own repos and have them be local npm modules.