PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/react-native/src/private/devsupport/rndevtools
Просмотр файла: ReactDevToolsSettingsManager.ios.js
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
import Settings from '../../../../Libraries/Settings/Settings';
const GLOBAL_HOOK_SETTINGS = 'ReactDevTools::HookSettings';
export function setGlobalHookSettings(settings: string) {
Settings.set({
[GLOBAL_HOOK_SETTINGS]: settings,
});
}
export function getGlobalHookSettings(): ?string {
const value = Settings.get(GLOBAL_HOOK_SETTINGS);
if (typeof value === 'string') {
return value;
}
return null;
}
Выполнить команду
Для локальной разработки. Не используйте в интернете!