1.0.0 • Published 1 year ago

expo-android-shell v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

expo-android-shell

A native expo module to execute shell commands on Android.

Installation

npm install expo-android-shell

Methods

execCommand(command: string): string

Executes a shell command synchronously. Returns the output of the command.

execCommandAsync(command: string): Promise<string>

Executes a shell command asynchronously on a native background thread. Returns a promise that resolves with the output of the command.

Usage

See the example for a full example.