Vitaliy Vlasov e40e495e11
Use QSettings in AppConfig
Some more changes

Changes

Fix review items

Rename init-settings to restore-native-settings

Restore application name (thanks @churik !)

Remove org name/domain setting for desktop

Change organization name to include domain

Re-use default values in :desktop/desktop

Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2018-12-19 19:53:54 +02:00

18 lines
345 B
JavaScript

'use strict';
const NativeModules = require('react-native').NativeModules;
class DesktopConfig {
static getValue(name, callbackFn) {
NativeModules.DesktopConfigManager.getValue(name, callbackFn);
}
static setValue(name, value) {
NativeModules.DesktopConfigManager.setValue(name, value);
}
}
module.exports = DesktopConfig;