react-native-jgpda-scan
Getting started
$ npm install react-native-jgpda-scan --save
Mostly automatic installation
$ react-native link react-native-jgpda-scan
Supported
- <input checked="" disabled="" type="checkbox"> SEUIC(小码哥)-PDA
- <input checked="" disabled="" type="checkbox"> IData(盈达聚力)-PDA
- <input checked="" disabled="" type="checkbox"> UROVO(优博讯)-PDA
- <input checked="" disabled="" type="checkbox"> HONEYWELL(霍尼韦尔)-PDA
- <input checked="" disabled="" type="checkbox"> PL(攀凌)-PDA
- <input checked="" disabled="" type="checkbox"> HT(捷宝)-PDA
Usage
import usePdaScan from "react-native-jgpda-scan";
const { code, error } = usePdaScan(
{
(code) => {
console.log(code);
},
(error) => {
console.log(error);
},
trigger:"always" //always: An event is triggered each time the code is scanned。 change:Events are triggered when changes occur
}
);