forked from lumin824/react-native-ezviz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
26 lines (21 loc) · 866 Bytes
/
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
import {
NativeModules,
requireNativeComponent
} from 'react-native';
let { EzvizModule } = NativeModules;
export var setAccessToken = EzvizModule.setAccessToken;
export var getCameraList = EzvizModule.getCameraList;
export var getDeviceInfo = EzvizModule.getDeviceInfo;
export var getDeviceList = EzvizModule.getDeviceList;
export var controlPTZ = EzvizModule.controlPTZ;
export var EZPTZCommand = {
EZPTZCommandLeft: EzvizModule.EZPTZCommand_EZPTZCommandLeft,
EZPTZCommandRight: EzvizModule.EZPTZCommand_EZPTZCommandRight,
EZPTZCommandUp: EzvizModule.EZPTZCommand_EZPTZCommandUp,
EZPTZCommandDown: EzvizModule.EZPTZCommand_EZPTZCommandDown,
};
export var EZPTZAction = {
EZPTZActionSTART: EzvizModule.EZPTZAction_EZPTZActionSTART,
EZPTZActionSTOP: EzvizModule.EZPTZAction_EZPTZActionSTOP
};
export var Ezviz = requireNativeComponent('Ezviz');