forked from PetroCloud/react-native-noke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
41 lines (39 loc) · 1.11 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import {
NativeModules
} from 'react-native';
import {
fromNokeEvents,
onEvent,
onEventOnce,
offEvent,
getEventListeners
} from './events';
const { RNNoke } = NativeModules;
export default {
initiateNokeService: RNNoke.initiateNokeService,
setApiKey: RNNoke.setApiKey,
setBluetoothDelayDefault: RNNoke.setBluetoothDelayDefault,
setBluetoothDelayBackgroundDefault: RNNoke.setBluetoothDelayBackgroundDefault,
setBluetoothScanDuration: RNNoke.setBluetoothScanDuration,
on: onEvent,
once: onEventOnce,
off: offEvent,
offlineUnlock: RNNoke.offlineUnlock,
sendCommands: RNNoke.sendCommands,
addNokeDevice(data) {
return RNNoke.addNokeDevice(data);
},
removeAllNokes: RNNoke.removeAllNokes,
removeNokeDevice: RNNoke.removeNokeDevice,
startScan: RNNoke.startScan,
stopScan: RNNoke.stopScan,
disconnect: RNNoke.disconnect,
connect: RNNoke.connect,
getDeviceInfo: RNNoke.getDeviceInfo,
setOfflineData: RNNoke.setOfflineData,
addNokeDeviceOnce: RNNoke.addNokeDeviceOnce,
fromNokeEvents,
getEventListeners,
isBluetoothEnabled: RNNoke.isBluetoothEnabled,
AUTHOR: RNNoke.AUTHOR
};