Skip to content

Get launch arguments for testing with Detox and Appium ๐Ÿš€

License

Notifications You must be signed in to change notification settings

Qeepsake/react-native-launch-arguments

ย 
ย 

Repository files navigation

React Native Launch Arguments

React Native module to get launch arguments. It makes passing parameters from testing tool such as Detox to react native super easy.

Mostly it's made for using

iOS: it takes data from [[NSProcessInfo processInfo] arguments]

Android: it takes data from currentActivity.getIntent().getBundleExtra("launchArgs") for detox and intent.getExtras() for ADB params

Getting started

npm i @qeepsake/react-native-launch-arguments
cd ios && pod install && cd ..

Usage

In JS:

import { LaunchArguments } from "@qeepsake/react-native-launch-arguments";
LaunchArguments.value();

In TS:

import { LaunchArguments } from "@qeepsake/react-native-launch-arguments";
interface MyExpectedArgs {
  authToken?: string;
  skipAuth?: boolean;
}
LaunchArguments.value<MyExpectedArgs>();

License

MIT ยฉ qeepsake

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


Luke Brandon Farrell

๐Ÿ“† ๐Ÿ’ป

iamolegga

๐Ÿ“† ๐Ÿ’ป ๐Ÿ“–

This project follows the all-contributors specification. Contributions of any kind welcome!

About

Get launch arguments for testing with Detox and Appium ๐Ÿš€

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 37.9%
  • Objective-C 24.0%
  • Ruby 22.1%
  • JavaScript 11.2%
  • Starlark 2.2%
  • TypeScript 2.1%
  • Shell 0.5%