rn-symcode-bt
React native library from Symcode barcodes scaner
Installation
npm install rn-symcode-bt
Select BLE mode on scaner
Usage
import Symcode from "rn-symcode-bt";
export declare type Device = Record<'name' | 'mac', string>;
export default class Symcode {
scanDevices(): Promise<Device[]>;
connect(mac: string): Promise<boolean>;
disconnect(): Promise<void>;
enableNotify(eventFn: (data: Record<'barcode', string>) => Promise<void>): Promise<void>;
disableNotify(): Promise<void>;
}
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT