11 lines
439 B
TypeScript
11 lines
439 B
TypeScript
import { NativeModule, requireNativeModule } from 'expo';
|
|
import { ExpoDownloadDetectModuleEvents, FileDetectedEvent } from './ExpoDownloadDetect.types';
|
|
|
|
declare class ExpoDownloadDetectModule extends NativeModule<ExpoDownloadDetectModuleEvents> {
|
|
startWatching(): void;
|
|
stopWatching(): void;
|
|
getRecentDownloads(): Promise<FileDetectedEvent[]>;
|
|
}
|
|
|
|
export default requireNativeModule<ExpoDownloadDetectModule>('ExpoDownloadDetect');
|