forked from Ant-Tech-Agency/react-native-noke
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
36 lines (34 loc) · 1.05 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
import { NativeModules } from 'react-native';
import {
fromNokeEvents,
onEvent,
onEventOnce,
offEvent,
removeAllListeners
} from './events';
const { RNNoke } = NativeModules;
export default {
initiateNokeService: RNNoke.initiateNokeService,
setBluetoothDelayDefault: RNNoke.setBluetoothDelayDefault,
setBluetoothDelayBackgroundDefault: RNNoke.setBluetoothDelayBackgroundDefault,
setBluetoothScanDuration: RNNoke.setBluetoothScanDuration,
on: onEvent,
once: onEventOnce,
off: offEvent,
offlineUnlock: RNNoke.offlineUnlock,
sendCommands: RNNoke.sendCommands,
addNokeDevice: RNNoke.addNokeDevice,
addNokeOfflineValues: RNNoke.addNokeOfflineValues,
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,
removeAllListeners,
AUTHOR: RNNoke.AUTHOR
};