forked from teeserted/react-native-noke
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
36 lines (33 loc) · 1.02 KB
/
index.js
File metadata and controls
36 lines (33 loc) · 1.02 KB
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,
setApiKey: RNNoke.setApiKey,
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,
fromNokeEvents,
removeAllListeners,
isBluetoothEnabled: RNNoke.isBluetoothEnabled,
/*** Only android methods*/
setBluetoothDelayDefault: RNNoke.setBluetoothDelayDefault,
setBluetoothDelayBackgroundDefault: RNNoke.setBluetoothDelayBackgroundDefault,
setBluetoothScanDuration: RNNoke.setBluetoothScanDuration,
};