Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@react-native/community-cli-plugin
Advanced tools
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.
start
Start the React Native development server.
npx react-native start [options]
Option | Description |
---|---|
--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-cache | Remove cached files. |
--custom-log-reporter-path <string> | Specify a module path exporting a replacement for TerminalReporter . |
--https | Enable 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-interactive | Disable interactive mode. |
bundle
Build the bundle for the provided JavaScript entry file.
npx react-native bundle --entry-file <path> [options]
Option | Description |
---|---|
--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). |
--resolver-option <string...> | Custom resolver options of the form key=value. URL-encoded. May be specified multiple times. |
--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-path | Report 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-cache | Remove cached files. |
--read-global-cache | Attempt to fetch transformed JS code from the global cache, if configured. Defaults to false . |
--config <string> | Path to the CLI configuration file. |
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.
v0.75.0
null
for optional but not nullable arguments. (67b9628af5 by @rubennorte)class
to ForwardRef
component (401f2fbb14 by @retyui)TouchableOpacity
from JS class
to ForwardRef
component (3d00549399 by @retyui)LongLivedObjectCollection::get
accept a Runtime reference as parameter. (86a52cc2dc by @fabriziocucci)LongLivedObject
constructor accept a Runtime
reference. (3706bf077e by @fabriziocucci)ReactViewBackgroundDrawable
in favor of CSSBackgroundDrawable
(d7766fa927 by @NickGerleman)android:supportsRtl="true"
for RTL layout (82c6f8a580 by @NickGerleman)TurboModule
instead (73b4d67a78 by @arushikesarwani94)ReactJsExceptionHandler
param from constructor and providing a default private implementation (fe7e7a015f by @alanleedev).create()
changed to take an additional parameter of type PausedInDebuggerOverlayManager
(nullable) (1d26907ca4 by @motiz88)getSurfacePresenter
and getModuleRegistry
(f19371f28d by @cipolleschi)RCTRedBox
access through RCTBridge
(b5db214d2a by @realsoelynn)Image.getSize/getSizeWithHeaders
method returns a promise if you don't pass a success
callback (2c1bcbac81 by @retyui)ReactNativeApplication.[enable,metadataUpdated]
CDP messages for reading host metadata (aced4072cf by @huntie)react-devtools
standalone app (430dd0be26 by @hoxyq)remove
methods for Linking.addEventListener
and AccessibilityInfo.addEventListener
Jest mocks (2483c63017 by @levibuzolic)requestIdleCallback
and cancelIdleCallback
in the new architecture (abfadc6083 by @robik)AppRegistry.setRootViewStyleProvider
(dbdd4da14f by @acoates-ms)Header
methods (028615180b by @retyui)Image
prop resizeMultiplier
to help increase quality of small images on low DPI devices (b6c3433537)ReactMarkerConstants.CONTENT_APPEARED
support on Android in bridgeless mode. (5da9fdf8f1 by @Kudo)onUserLeaveHint
support into ReactActivityDelegate
(3cf6c64a80 by @behenate)onUserLeaveHint
support into ReactActivityDelegate
(6450d08187 by @behenate)ReactNativePodsUtils.spm_dependency
(f903f34837 by @mfazekas)Animated
components (452373b5bf by @yungsters)Pressable
component. (cfa784c5ce by @Zahoq)StyleSheet.compose
(34331af9ce by @yungsters)--experimental-debugger
launch flow (b1bb0bee41 by @motiz88)act()
(5a8327857b by @yungsters)console
object (949296571b by @motiz88)no-string-refs
is now a lint error (387250112e by @yungsters)react@18.3.1
(abb7070a51 by @yungsters)Share.share()
's argument types to be more explicit. (8b53d41a88)mockComponent
now also mocks name
(5062c5256e by @yungsters)AlertFragment
dialog builder to use androidx.appcompat
(1/2) (297ded90aa)AlertFragment
dialog builder to use androidx.appcompat
(2/2) (600d3f6ff1)openDebugger()
method on DevSupportManager
(b309af79e8 by @motiz88)useDevSupport
now is configurable by ReactNativeHost. (d195fd0c06 by @javache)DevInternalSettings
from DevSupportManagerBase
(52cec1e798 by @Kudo)DevServerHelper
(a1e8118541 by @huntie)mapbufferjni
via prefab. (c73e22142e by @tomekzaw)handleRemoveView
function in ReactViewGroup.java
to ignore calls for Views
that are not children of this ViewGroup
(0d7a92b551 by @bartlomiejbloniarz)onprogress
event for XMLHttpRequest
even when the Content-Length
header is missing in the response headers (457d14bd1b)customizeRootView
from RCTRootViewFactory
(8956869792 by @Kudo)DEFINES_MODULE
for React-jsinspector.podspec (4e6186555e by @Kudo)foregroundInactive
window when there are no foregroundActive
windows in RCTKeyWindow (42ceacd281 by @cipolleschi)notifyObservers
straight to RCTEventDispatcher.mm
. (f5c888c2d7 by @WoLewicki)<ImageBackground/>
component (09c903c439 by @retyui)launchId
query param for /debugger-frontend
is no longer generated automatically for each /open-debugger
call. Caller of /open-debugger
is now responsible for generating the launchId
, which will be passed along to /debugger-frontend
. (b7de916664 by @EdmondChuiHW)react-native/dev-middleware
: Remove non-standard faviconUrl
field from CDP /json
response (df19e597e3 by @huntie)tvParallaxProperties
prop from TouchableOpacity
& add missing focusable
, rejectResponderTermination
props (0a0cd6517f by @retyui)NativeAnimationsDebugModule
(already not Public API) (95f7a5c597 by @yungsters)fontWeight
normalization for TextInput component (15f27bc299 by @NickGerleman)Props.h
created from codegen missing default initializers in C++ struct
(639d890dff by @alanleedev)collapsableChildren
prop (7b44c8d1d0 by @NickGerleman)NativeState
methods to the WithRuntimeDecorator
class. (218ea5d44c by @bartlomiejbloniarz)mountingOverrideDelegates
(358fe46969 by @WoLewicki)adjustFontSizeToFit
when used without numberOfLines
(b236e154a1 by @j-piasecki)adjustsFontSizeToFit
not working on Android when using the new architecture (747a96b7b3 by @j-piasecki)npx react-native-community/cli config
fails or timeouts proper error is shown and built is aborted, instead of leaving and empty autolinking.json (3782511350 by @mfazekas)rrc_textinput
on Android a shared library (ea8ad6457c by @j-piasecki)convertToCase
(cef17ba14f by @cortinico)JvmStatic
annotations for all methods from AndroidUnicodeUtils.kt
(54dadd7bda by @WoLewicki)textAlign
not being taken into account when positioning views inlined in text (1f08799560 by @j-piasecki)batchRenderingUpdatesInEventLoop
is enabled. (849da2146c by @javache)ReactModalHostView
(15ff82f811 by @cortinico)getChildAtWithSubviewClippingEnabled
(d6a44e632a by @javache)ReactActivity.getReactDelegate().reload()
. (539922339b by @Kudo)JavaTimerManager$IdleCallbackRunnable.cancel
(e686b4330d by @cortinico)contextMenuHidden
(493dbb2190 by @jakex7)RCTRootViewFactory
from Swift (5aea518d88 by @okwasniewski)adjustFontSizeToFit
is set (ed7766cee9 by @j-piasecki)[super viewDidLoad]
in RCTRedBox.mm
. (d93788301c by @hakonk)InputAccessoryView
width on device orientation change (8597727c28 by @mauriciomeirelles)HermesExecutorFactory.h
build error when importing its private header (2d46dbe6ce by @Kudo)RCTImageLoader
and RCTNetworkTask
that were accessed concurrently, which in some cases lead to data races. (ffc16fc18b by @hakonk)bundleURL
so that it can connect to metro on Reload when the url changes. (8b8b85bb1f by @cipolleschi)progress
in onProgress
native event arguments (78ab5f4b83 by @netmaxt3r)FAQs
Core CLI commands for React Native
The npm package @react-native/community-cli-plugin receives a total of 1,261,731 weekly downloads. As such, @react-native/community-cli-plugin popularity was classified as popular.
We found that @react-native/community-cli-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.