Socket
Socket
Sign inDemoInstall

@react-native/community-cli-plugin

Package Overview
Dependencies
440
Maintainers
11
Versions
269
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @react-native/community-cli-plugin

Core CLI commands for React Native


Version published
Weekly downloads
921K
decreased by-0.52%
Maintainers
11
Created
Weekly downloads
 

Changelog

Source

0.74.0

Breaking

  • OnLayout event batching changes (57e49b584d by @sammy-SC)
  • Delete traitCast and identifier traits (1170a68755 by @NickGerleman)
  • Remove static-behaves-like-relative errata (56b9b990de by @joevilches)
  • Make start/end in styles always refer to writing direction (e859f6c773 by @NickGerleman)
  • Remove APIs for reporting bundle download status to inspector-proxy, which does not use this information. (cfa02eec50 by @motiz88)
  • Delete configFilename and configKey arguments from iOS codegen CLI. Now we always expect them to be package.json and codegenConfig respectively. (33a44e68fc by @dmytrorykun)
  • Add errata for fix to marginStart/End for row-reverse flex direction (2dad663c28 by @joevilches)
  • Remove web performance logging from GlobalPerformanceLogger (53a2742e13 by @rshest)
  • Rename AbsolutePositioning errata (08eb985c33 by @joevilches)
  • Refactor React to get rid of JSIModule and its dependencies (6555205539 by @arushikesarwani94)
  • Get rid of old APIs in FabricUIManagerProvider (c2c346ccaf by @arushikesarwani94)
Android specific
iOS specific
  • Removing unused handler param on PushNotificationIOS.removeEventListener (fdf4ec3297)
  • Make bridgeless the default when the New Arch is enabled (c91af773fa by @cipolleschi)
  • CocoaPods: remove the ios_folder argument from the use_react_native function. (be0c353e18 by @dmytrorykun)
  • Codegen: mapping for numeric types is changed for Objective-C native modules. Float -> float; Int32 -> NSInteger. (5aa425c086 by @dmytrorykun)
  • Defining external codegen targets in react-native.config.js is not supported anymore. Define them as normal dependencies in package.json. (ca39a11b27 by @dmytrorykun)
  • Delete configFileDir CLI argument. (8a62d6135f by @dmytrorykun)
  • (072a2006e0 by @philIip)
  • Remove some usages of RCT_NEW_ARCH_ENABLED. The change should be transparent BUT some Swift libraries might get broken by this change. (951efc8ce2 by @cipolleschi)
  • You cannot call methodQueue on RCTHTTPRequestHandler (7503dbd784 by @philIip)
  • RepeatInterval is deprecated in PushNotificationIOS. Use fireDate and the new fireIntervalSeconds. (a1299938a9)
  • AlertAction is deprecated in PushNotificationIOS. getScheduledLocalNotifications now uses new iOS APIs which do not expose this property. (9f4d66d283)
  • Make TextInput.onContentSizeChange a direct event (744fb4a0d2 by @sammy-SC)
  • Remove the Flipper integration (899e7cdb55 by @cipolleschi)
  • Deleted the no-op didRegisterUserNotificationSettings: callback in RCTPushNotificationManager (3bea8e1bd4)

Added

Android specific
iOS specific

Changed

iOS specific
Android specific
iOS specific

Deprecated

  • Deprecate BatchedBridge.registerCallableModule. Please use registerCallableModule instead (7f549ec7be by @RSNara)
  • Warn when fabric is used without concurrent root (c06807154b by @javache)
  • Replace RAIICallbackWrapperDestroyer with AsyncCallback (re-land) (fbd8504cc0 by @javache)
  • Deprecated RAIICallbackWrapperDestroyer. Use AsyncCallback instead for safe jsi::Function memory ownership. (8dd89cee1b by @javache)
  • Refactor BaseJavaModule and ReactContextBaseJavaModule (5af7b7038c by @mdvacca)
Android specific
iOS specific

Removed

Fixed

Android specific
  • Disable the "Open Debugger" item from dev menu if the bundler is disconnected (7afc8b8623 by @EdmondChuiHW)
  • Fix linking of local app modules turbomodules (eb619468c1 by @cortinico)
  • Fix Reload behavior being different on Bridgeless (85257a993f by @cortinico)
  • Fixes Android compile failed. (aefca27c67 by @zhongwuzw)
  • Fix delivery of events during initial rendering in new architecture (7b36233ae1 by @mdvacca)
  • Restore missing call to convertRawPropAliases (5e37c1f219 by @NickGerleman)
  • [Android][Fixed] - Fix incorrect measurement of TextInput when new architecture is enabled ([dc2ce9e66e](https://github.com/facebook/react-native/commit/dc2ce9e66e337ef90a179853467dbb8b09b9d24c) by [@mdvacca](https://github.com/mdvacca))
    
  • Make Android respect metro location from shared preferences for the debugger workflow (0ea16fd3f7 by @kmagiera)
  • Assert DefaultComponentsRegistry::registerComponentDescriptorsFromEntryPoint is set (8474e239df by @tido64)
  • Fixed unexpected resizing of ReactRootView for dev bundles in brownfield apps (5d68c908f1 by @hoxyq)
  • Fix: prevent scroll event in nested scroll when scrollEnabled={false} (c7873b77b8 by @Icehunter)
  • Update getDefaultJSExecutorFactory to load Hermes first and fallback to JSC (70a757fc1e by @cortinico)
  • Update profiler button to use "Toggle" string. (8bcaed90c1 by @szymonrybczak)
  • Typos in ReactCompoundViewGroup comments (385473522c by @kkafar)
  • Fix AndroidTextInputProps Detection of Padding (4016bfbc37 by @NickGerleman)
  • Fix type in BlobCollector.h/cpp (c267a0679d by @Sunbreak)
  • Fixed an issue where the status bar colors would not match when opening modals (e8d622e9d1)
  • Bump Fresco to 3.1.3 (dca81e6172 by @cortinico)
  • Fix crash with java.lang.NoSuchMethodError for Bridgeless (b22f566104 by @cortinico)
  • B1fccb05ccb306005dc7616a4eaaa182b0b1deaf bumped fresco version to 3.1.0. (fbc28fa73d by @lafest)
  • Ensure that configureJavaToolChains is only executed once during configuration (c7d969f31b by @UNIDY2002)
  • Fix the crash in ReactViewGroup of https://github.com/facebook/react-native/issues/30785 (b9418315e2)
  • Handle Crash for onRequestPermissionsResult (925209932a by @chakrihacker)
  • Fix instacrash on bridgeless due to calling showMessage on null instance (2f1ecea1cb by @cortinico)
  • Allow non-ascii header values on Android and add utf-8 filename fallback in FormData (7c7e9e6571 by @robertying)
  • Fix InteropUIBlockListener to support react-native-view-shot on Bridgeless (24a3dade29 by @cortinico)
  • Fix Android HorizontalScrollView fling when content length less than ScrollView length (7d180d7127 by @NickGerleman)
  • Fixed prefab header paths for rrc_text and rrc_textinput (623bbe6bd6 by @j-piasecki)
  • Fix build from source for hermes-engine (a1171f79f8 by @cortinico)
  • Fix bridgeless configuration to include DebuggingOverlay in react packages (ad9368068a by @hoxyq)
  • React-Native-Restart in release (b282e87729 by @arushikesarwani94)
  • Do not crash on onJSBundleLoadedFromServer when fast-refreshing on bridgeless mode (44e5bc9e2c by @cortinico)
  • Re-enable listing Hermes debugger targets in chrome://inspect, broken in 0.74 RC (4cfac8eea6 by @motiz88)
  • Fix registration of ViewManagers in new renderer when not using lazyViewManagers. (fb9872d4fe by @javache)
  • NullPointerException is no longer ignored in MessageQueueThreadHandler (5f45700bd0 by @javache)
  • Properly handle RR and CMD+M in Bridgeless Mode (e9f66d9c0c by @cortinico)
  • Bring back the UNSET constant to TextAttributeProps. (9700540bec by @dmytrorykun)
  • Fix bridge mode by constructing ReactDelegate correctly (a25004c86c by @cortinico)
  • Fixed possible deadlock in dispatchViewUpdates (b2ca41eef5 by @EvertEt)
iOS specific

Security

iOS specific

Readme

Source

@react-native/community-cli-plugin

This is an internal dependency of React Native. Please don't depend on it directly.

CLI entry points supporting core React Native development features.

Formerly @react-native-community/cli-plugin-metro.

Commands

start

Start the React Native development server.

Usage
npx react-native start [options]
Options
OptionDescription
--port <number>Set the server port.
--host <string>Set the server host.
--projectRoot <path>Set the path to the project root.
--watchFolders <list>Specify additional folders to be added to the watch list.
--assetPlugins <list>Specify additional asset plugins.
--sourceExts <list>Specify additional source extensions to bundle.
--max-workers <number>Set the maximum number of workers the worker-pool will spawn for transforming files. Defaults to the number of the cores available on your machine.
--transformer <string>Specify a custom transformer.
--reset-cacheRemove cached files.
--custom-log-reporter-path <string>Specify a module path exporting a replacement for TerminalReporter.
--httpsEnable HTTPS connections.
--key <path>Specify path to a custom SSL key.
--cert <path>Specify path to a custom SSL cert.
--config <string>Path to the CLI configuration file.
--no-interactiveDisable interactive mode.

bundle

Build the bundle for the provided JavaScript entry file.

Usage
npx react-native bundle --entry-file <path> [options]
Options
OptionDescription
--entry-file <path>Set the path to the root JavaScript entry file.
--platform <string>Set the target platform (either "android" or "ios"). Defaults to "ios".
--transformer <string>Specify a custom transformer.
--dev [boolean]If false, warnings are disabled and the bundle is minified. Defaults to true.
--minify [boolean]Allows overriding whether bundle is minified. Defaults to false if --dev is set. Disabling minification can be useful for speeding up production builds for testing purposes.
--bundle-output <string>Specify the path to store the resulting bundle.
--bundle-encoding <string>Specify the encoding for writing the bundle (https://nodejs.org/api/buffer.html#buffer_buffer).
--sourcemap-output <string>Specify the path to store the source map file for the resulting bundle.
--sourcemap-sources-root <string>Set the root path for source map entries.
--sourcemap-use-absolute-pathReport SourceMapURL using its full path.
--max-workers <number>Set the maximum number of workers the worker-pool will spawn for transforming files. Defaults to the number of the cores available on your machine.
--assets-dest <string>Specify the directory path for storing assets referenced in the bundle.
--reset-cacheRemove cached files.
--read-global-cacheAttempt to fetch transformed JS code from the global cache, if configured. Defaults to false.
--config <string>Path to the CLI configuration file.

ram-bundle

Build the RAM bundle for the provided JavaScript entry file.

Usage
npx react-native ram-bundle --entry-file <path> [options]
Options

Accepts all options supported by bundle and the following:

OptionDescription
--indexed-ram-bundleForce the "Indexed RAM" bundle file format, even when building for Android.

Contributing

Changes to this package can be made locally and tested against the rn-tester app, per the Contributing guide. During development, this package is automatically run from source with no build step.

Keywords

FAQs

Last updated on 11 Oct 2023

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc