Skip to content

Commit

Permalink
Add spec for DevSettings (facebook#25084)
Browse files Browse the repository at this point in the history
Summary:
Part of facebook#24875, adds a spec for DevSettings.

## Changelog

[General] [Added] - TM spec for DevSettings
Pull Request resolved: facebook#25084

Reviewed By: hramos

Differential Revision: D15558093

Pulled By: fkgozali

fbshipit-source-id: 3adcb640a6ad80c84c831905bda114e27177f1fe
  • Loading branch information
Jarvis Luong authored and M-i-k-e-l committed Mar 10, 2020
1 parent 3b6ff57 commit 3ca391b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Libraries/NativeModules/specs/NativeDevSettings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* Copyright (c) Facebook, Inc. and its 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
*/

'use strict';

import type {TurboModule} from '../../TurboModule/RCTExport';
import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';

export interface Spec extends TurboModule {
+reload: () => void;
+setHotLoadingEnabled: (isHotLoadingEnabled: boolean) => void;
+setIsDebuggingRemotely: (isDebuggingRemotelyEnabled: boolean) => void;
+setLiveReloadEnabled: (isLiveReloadEnabled: boolean) => void;
+setProfilingEnabled: (isProfilingEnabled: boolean) => void;
+toggleElementInspector: () => void;

// iOS only.
+setIsShakeToShowDevMenuEnabled: (enabled: boolean) => void;
}

export default TurboModuleRegistry.getEnforcing<Spec>('DevSettings');

0 comments on commit 3ca391b

Please sign in to comment.