You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin also automatically detects the presence of prebuilt native modules, and **disables** compiling them on the fly. The prebuilds are detected as `.node` files in a specific path in the npm package:
Notice `PLATFORM` and `ARCH`. The supported values are:
89
+
90
+
- PLATFORM = `android`
91
+
- ARCH = `arm`
92
+
- ARCH = `arm64`
93
+
- ARCH = `x64`
94
+
- PLATFORM = `ios`
95
+
- ARCH = `arm64`
96
+
- ARCH = `x64`
97
+
98
+
Compilation will then be forcefully disabled by hacking the `<MODULE_NAME>` folder to delete its `binding.gyp` and modify its `package.json` such that node-gyp will ignore this module for compilation.
99
+
100
+
If you are a maintainer of a native module and want to support prebuilds for nodejs-mobile, check out the CLI tool [prebuild-for-nodejs-mobile](https://github.com/staltz/prebuild-for-nodejs-mobile).
101
+
80
102
### `React-Native` application
81
103
82
104
To communicate with Node.js from your `react-native` application, first import `nodejs-mobile-react-native`.
0 commit comments