Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 674 Bytes

expo-module-local-autolinking.md

File metadata and controls

25 lines (18 loc) · 674 Bytes

Expo Modules autolinking when using the --local flag

If using npx create-expo-module --local you will get the following message:

The local module will be created in the modules directory in the root of your project.

Expo autolinking mechanism by default searches two directories in the project root for linkable modules:

  • node_modules
  • modules

The second directory is configurable by setting nativeModulesDir in the following manner in package.json:

"expo": {
  "autolinking": {
    "nativeModulesDir": "differentDirectory"
  }
}

If you override this property make sure to move your native modules to the new directory.