Saturday, December 10, 2016

Intellij and React Native Projects

If you want to add your existing React Native project to your Intellij project as a module do the following:

  1. File > New > Module
  2. Click Static Web > Static Web
  3. In the 'Content Root' box, enter the location of the existing React Native directory.
  4. Click Finish
The reason you have to do it this way is that the Intellij Import Module from Existing Sources wants to find a source / setup for the module.  The problem is that you've got three different code streams in your React Native project:  1) Java for Android, 2) iOS XCode files and 3) React JavaScript files.  My experience has been that the Intellij scanner picks Java over JavaScript and ignores the rest of the directories.

No comments:

Post a Comment