UNPKG

rfid-mobile

Version:

RFID Mobile Module for Expo, (Android only currently)

16 lines (12 loc) 370 B
import { NativeModule, registerWebModule } from "expo"; import type { RfidModuleEvents } from "./Rfid.types"; class RfidModule extends NativeModule<RfidModuleEvents> { PI = Math.PI; async setValueAsync(value: string): Promise<void> { this.emit("onChange", { value }); } hello() { return "Hello world! 👋"; } } export default registerWebModule(RfidModule);