Watching Custom Directories From the React Native Packager
It’s fairly easy to specify custom folders for the packager to watch. Since the React Native client sets up an
npm start command when it generates the project, you can simply modify that script to watch additional folders.
Unfortunately, when you launch the project in Xcode, it runs the packager directly, rather than running the
npm start command, but if you manually run
npm start from a terminal window, React Native will use that rather than launching a new instance of the packager. I have an issue opened on the React Native project, suggesting that they run
npm start from Xcode, but we’ll see if it goes anywhere.