wix-incubator / detox-inspector

A library for helping developers to inspect the React Native views attributes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detox is released under the MIT license

How to integrate the inspector

  1. Make sure you have jitpack repository installed. Add the following to your root build.gradle file at the end of repositories:
	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}
  1. Add the following dependency to your app/build.gradle
	dependencies {
		implementation 'com.github.wix-incubator:detox-inspector:Tag'
	}

(Replace Tag with the latest version name)

How to invoke the inspector

You have two options to invoke the inspector:

  1. adb: adb shell am start -n {YOUR_PACKAGE_NAME}/com.wix.detox.inspector.features.inspect.InspectActivity
  2. Quick Settings: Open your application, open the quick settings panel (Located at near the Wifi toggle), click on edit, and drag the "Detox Inspector" tile to the quick settings panel. Click on the tile to open the inspector.

About

A library for helping developers to inspect the React Native views attributes

License:MIT License


Languages

Language:Kotlin 100.0%