import { NativeModule, registerWebModule } from "expo"; import type { ExpoPdfModuleEvents, ThumbnailParams } from "./ExpoPdf.types"; class ExpoPdfModule extends NativeModule { PI = Math.PI; async setValueAsync(value: string): Promise { this.emit("onChange", { value }); } hello() { return "Hello world! 👋"; } async shareAsync(_params: unknown): Promise { return; // no-op on web } async getPageThumbnailAsync(_params: ThumbnailParams): Promise { return "data:image/png;base64,"; // minimal placeholder } async clearCacheAsync(): Promise { return; } } export default registerWebModule(ExpoPdfModule, "ExpoPdfModule");