@zecky-dev/react-native-app-list
Version:
Retrieves a list of all installed apps on an Android device and allows checking whether a specific app is installed.
9 lines (7 loc) • 354 B
text/typescript
import type { TurboModule } from 'react-native';
import { TurboModuleRegistry } from 'react-native';
export interface Spec extends TurboModule {
getAllInstalledApps(): Promise<Array<{ appName: string; packageName: string }>>;
isAppInstalled(packageName: string): Promise<boolean>;
}
export default TurboModuleRegistry.getEnforcing<Spec>('AppList');