@ilo-home/react-native-tuya
Version:
React Native bindings for the Tuya SDK
20 lines (15 loc) • 420 B
text/typescript
import { NativeModules } from 'react-native';
const tuya = NativeModules.TuyaHomeDataManagerModule;
export type GetRoomDeviceListParams = {
homeId?: number;
roomId: number;
};
export type GetRoomDeviceListResponse = {
deviceList: {}[];
groupList: {}[];
};
export function getRoomDeviceList(
params: GetRoomDeviceListParams
): Promise<GetRoomDeviceListResponse> {
return tuya.getRoomDeviceList(params);
}