Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-native-community/cli-config

Package Overview
Dependencies
Maintainers
34
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-community/cli-config

This package is part of the [React Native CLI](../../README.md). It contains commands for managing the configuration of React Native app.

  • 14.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.5M
decreased by-27.72%
Maintainers
34
Weekly downloads
 
Created

What is @react-native-community/cli-config?

@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.

What are @react-native-community/cli-config's main functionalities?

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'],
  },
};

Other packages similar to @react-native-community/cli-config

FAQs

Package last updated on 18 Jul 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc