Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 532 Bytes

README.md

File metadata and controls

23 lines (13 loc) · 532 Bytes

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.