Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@react-native-community/cli-config
Advanced tools
This package is part of the [React Native CLI](../../README.md). It contains commands for managing the configuration of React Native app.
@react-native-community/cli-config is a part of the React Native CLI tools that helps in configuring and managing React Native projects. It provides functionalities to customize the behavior of the React Native CLI, manage project settings, and streamline the development workflow.
Customizing CLI Configuration
This feature allows you to customize the React Native CLI configuration by specifying paths, assets, and dependencies. The code sample demonstrates how to set the path to the React Native library, include custom assets, and configure platform-specific dependencies.
module.exports = {
reactNativePath: './node_modules/react-native',
assets: ['./assets/fonts/'],
dependencies: {
'react-native-some-library': {
platforms: {
ios: null,
},
},
},
};
Managing Project Settings
This feature allows you to manage project settings such as resolver configurations. The code sample shows how to extend the default configuration to include additional source file extensions.
const { getDefaultConfig } = require('@react-native-community/cli-config');
module.exports = {
...getDefaultConfig(__dirname),
resolver: {
sourceExts: ['jsx', 'js', 'ts', 'tsx'],
},
};
react-native-config allows you to manage environment-specific configurations in React Native projects. It provides a way to define and access environment variables, which can be useful for managing different settings for development, staging, and production environments. Unlike @react-native-community/cli-config, which focuses on CLI customization, react-native-config is more about managing environment variables.
react-native-dotenv is a Babel plugin that lets you import environment variables from a .env file into your React Native project. It simplifies the process of managing environment-specific settings. While @react-native-community/cli-config deals with CLI and project configuration, react-native-dotenv is specifically designed for handling environment variables.
This package is part of the React Native CLI. It contains commands for managing the configuration of React Native app.
yarn add @react-native-community/cli-config
config
Usage:
npx react-native config
Output project and dependencies configuration in JSON format to stdout. Used by autolinking.
FAQs
This package is part of the [React Native CLI](../../README.md). It contains commands for managing the configuration of React Native app.
The npm package @react-native-community/cli-config receives a total of 957,591 weekly downloads. As such, @react-native-community/cli-config popularity was classified as popular.
We found that @react-native-community/cli-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 34 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.