RFID component for react native, only works Android. If you find this package useful hit the star with <3
yarn add https://github.com/LongNguyen2312/react-native-rfid-handle.git
Refers to your JS files
import rfidModule from 'react-native-rfid-handle';
rfidModule.ScanBLE()
rfidModule..stopScanBLE()
rfidModule.connectAddress('address').then(res => {
// res is divices infomation connected
});
rfidModule..startScanRFID()
rfidModule.stop()
rfidModule.clearData().then(res => {
//res == true => done
//res != true => fail
})
DeviceEventEmitter.addListener('ScanBLEListenner', res => {
// res is the information of a device when found
})
DeviceEventEmitter.addListener('ReadRFIDListenner', res => {
// res is the information of a RFID tag when found
})