2018-12-13 15:42:28 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const NativeModules = require('react-native').NativeModules;
|
|
|
|
|
|
|
|
class DesktopConfig {
|
|
|
|
|
2018-12-18 17:30:26 +00:00
|
|
|
static getValue(name, callbackFn) {
|
|
|
|
NativeModules.DesktopConfigManager.getValue(name, callbackFn);
|
2018-12-13 15:42:28 +00:00
|
|
|
}
|
|
|
|
|
2018-12-18 17:30:26 +00:00
|
|
|
static setValue(name, value) {
|
|
|
|
NativeModules.DesktopConfigManager.setValue(name, value);
|
2018-12-13 15:42:28 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = DesktopConfig;
|