@react-native-community/cli-platform-android
- Version 11.3.8
- Published
- 233 kB
- 5 dependencies
- MIT license
Install
npm i @react-native-community/cli-platform-android
yarn add @react-native-community/cli-platform-android
pnpm add @react-native-community/cli-platform-android
Overview
This package is part of the [React Native CLI](../../README.md). It contains commands for managing the Android part of React Native app.
Index
Variables
variable adb
const adb: { getDevices: typeof getDevices; getAvailableCPUs: typeof getAvailableCPUs; getCPU: typeof getCPU;};
variable commands
const commands: ( | { name: string; description: string; func: () => Promise<void> } | { name: string; description: string; func: ( _argv: string[], config: any, args: import('./runAndroid').Flags ) => Promise<void>; options: ( | { name: string; description: string; default?: undefined; parse?: undefined; } | { name: string; default: string | number; parse: NumberConstructor; description?: undefined; } | { name: string; description: string; default: string | undefined; parse?: undefined; } | { name: string; description: string; parse: (val: string) => string[]; default?: undefined; } | { name: string; description: string; default: boolean; parse?: undefined; } | { name: string; description: string; parse: NumberConstructor } )[]; })[];
Functions
function dependencyConfig
dependencyConfig: ( root: string, userConfig?: AndroidDependencyParams | null) => AndroidDependencyConfig | null;
Same as projectConfigAndroid except it returns different config that applies to packages only
function getAdbPath
getAdbPath: () => string;
function getAndroidProject
getAndroidProject: (config: Config) => any;
function getPackageName
getPackageName: ( manifestPath: string | null, buildGradlePath: string | null) => string;
Get the package name/namespace of the running React Native app
Parameter manifestPath
The path to the AndroidManifest.xml
Parameter buildGradlePath
The path to the build.gradle[.kts] file.
function listAndroidDevices
listAndroidDevices: () => Promise<DeviceData | undefined>;
function projectConfig
projectConfig: ( root: string, userConfig?: AndroidProjectParams) => AndroidProjectConfig | null;
Gets android project config by analyzing given folder and taking some defaults specified by user into consideration
function tryRunAdbReverse
tryRunAdbReverse: ( packagerPort: number | string, device?: string | void) => void;
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
Package Files (8)
Dependencies (5)
Dev Dependencies (4)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@react-native-community/cli-platform-android
.
- Markdown[](https://www.jsdocs.io/package/@react-native-community/cli-platform-android)
- HTML<a href="https://www.jsdocs.io/package/@react-native-community/cli-platform-android"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2831 ms. - Missing or incorrect documentation? Open an issue for this package.