Socket
Socket
Sign inDemoInstall

@react-native-community/cli-config

Package Overview
Dependencies
102
Maintainers
0
Versions
114
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
1.7M
decreased by-0.44%
Maintainers
0
Created
Weekly downloads
 

Package description

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

Readme

Source

@react-native-community/cli-config

This package is part of the React Native CLI. It contains commands for managing the configuration of React Native app.

Installation

yarn add @react-native-community/cli-config

Commands

config

Usage:

npx react-native config

Output project and dependencies configuration in JSON format to stdout. Used by autolinking.

FAQs

Last updated on 24 Jun 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc