PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/react-native/src/private/devsupport/rndevtools/specs
Просмотр файла: NativeReactDevToolsRuntimeSettingsModule.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 type {TurboModule} from '../../../../../Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from '../../../../../Libraries/TurboModule/TurboModuleRegistry';
export type ReloadAndProfileConfig = {
shouldReloadAndProfile: boolean,
recordChangeDescriptions: boolean,
};
// Linter doesn't speak Flow's `Partial` type
export type PartialReloadAndProfileConfig = {
shouldReloadAndProfile?: boolean,
recordChangeDescriptions?: boolean,
};
export interface Spec extends TurboModule {
+setReloadAndProfileConfig: (config: PartialReloadAndProfileConfig) => void;
+getReloadAndProfileConfig: () => ReloadAndProfileConfig;
}
export default (TurboModuleRegistry.get<Spec>(
'ReactDevToolsRuntimeSettingsModule',
): ?Spec);
Выполнить команду
Для локальной разработки. Не используйте в интернете!