Code Sharing Between React Native and React Web Apps
Scott Luptowski

Thanks for sharing. This is very helpful. We are planning to do something similar.

I have 2 questions:

  1. What if you need third party package in your shared repo, do you have to declare dependencies in package.json?
  2. Can we just put shared code in a folder in the web project, and have a watchdog to detect changes and populate over to the mobile project? That way we don’t have to setup the transpiler or npm link.
Like what you read? Give Anh Nguyen a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.