Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
expo-modules-autolinking
Advanced tools
The expo-modules-autolinking package is designed to automatically link native modules in Expo projects. It simplifies the process of integrating native code with JavaScript by scanning for native modules and linking them without requiring manual configuration.
Automatic Module Discovery
This feature allows you to automatically discover native modules in your project. The `findModules` function scans the project directory and returns a list of native modules that can be linked.
const { findModules } = require('expo-modules-autolinking');
const modules = findModules();
console.log(modules);
Custom Module Linking
This feature enables custom linking of specific modules for a given platform. The `linkModules` function takes an object with the modules to link and the target platform, and performs the linking process.
const { linkModules } = require('expo-modules-autolinking');
linkModules({
modules: ['module1', 'module2'],
platform: 'ios'
});
Configuration Options
This feature allows you to configure the autolinking process with various options. The `configure` function accepts an object with configuration settings such as target platforms and modules to exclude from linking.
const { configure } = require('expo-modules-autolinking');
configure({
platforms: ['ios', 'android'],
exclude: ['module-to-exclude']
});
The rnpm (React Native Package Manager) package was an early tool for managing and linking native modules in React Native projects. While it provided basic autolinking capabilities, it has been largely deprecated in favor of more modern tools like react-native-auto-linking and Expo's autolinking features.
Scripts that autolink Expo modules.
For managed Expo projects, please follow the installation instructions in the API documentation for the latest stable release. If you follow the link and there is no documentation available then this library is not yet usable within managed projects — it is likely to be included in an upcoming Expo SDK release.
For bare React Native projects, you must ensure that you have installed and configured the expo
package before continuing.
npm install expo-modules-autolinking
Contributions are very welcome! Please refer to guidelines described in the contributing guide.
FAQs
Scripts that autolink Expo modules.
The npm package expo-modules-autolinking receives a total of 720,068 weekly downloads. As such, expo-modules-autolinking popularity was classified as popular.
We found that expo-modules-autolinking demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 27 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.