Socket
Book a DemoInstallSign in
Socket

@react-native-harness/platform-android

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-harness/platform-android

Android platform for React Native Harness

latest
npmnpm
Version
1.0.0-alpha.18
Version published
Weekly downloads
99
-34.44%
Maintainers
1
Weekly downloads
 
Created
Source

harness-banner

mit licence npm downloads Chat PRs Welcome

Android platform for React Native Harness - enables testing on Android emulators and physical devices.

Installation

npm install @react-native-harness/platform-android
# or
pnpm add @react-native-harness/platform-android
# or
yarn add @react-native-harness/platform-android

Usage

Import the Android platform functions in your rn-harness.config.mjs:

import {
  androidPlatform,
  androidEmulator,
  physicalAndroidDevice,
} from '@react-native-harness/platform-android';

const config = {
  runners: [
    androidPlatform({
      name: 'android',
      device: androidEmulator('Pixel_8_API_35'),
      bundleId: 'com.your.app',
    }),
    androidPlatform({
      name: 'physical-device',
      device: physicalAndroidDevice('Motorola', 'Moto G72'),
      bundleId: 'com.your.app',
    }),
  ],
  // ... other config
};

export default config;

API

androidPlatform(config)

Creates an Android platform runner configuration.

Parameters:

  • config.name - Unique name for the runner
  • config.device - Android device configuration (emulator or physical)
  • config.bundleId - Android application bundle ID

androidEmulator(deviceName)

Creates an Android emulator device configuration.

Parameters:

  • deviceName - Name of the Android emulator (e.g., 'Pixel_8_API_35')

physicalAndroidDevice(manufacturer, model)

Creates a physical Android device configuration.

Parameters:

  • manufacturer - Device manufacturer (e.g., 'Motorola')
  • model - Device model (e.g., 'Moto G72')

Requirements

  • Android SDK installed
  • Android emulator or physical device connected
  • React Native project configured for Android

Made with ❤️ at Callstack

react-native-harness is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. Callstack is a group of React and React Native geeks, contact us at hello@callstack.com if you need any help with these or just want to say hi!

Like the project? ⚛️ Join the team who does amazing stuff for clients and drives React Native Open Source! 🔥

FAQs

Package last updated on 03 Nov 2025

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